<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 6:08 AM, Brecht Van Lommel <span dir="ltr"><<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 11, 2013 at 1:36 PM, Matt Ebb <<a href="mailto:matt@mke3.net">matt@mke3.net</a>> wrote:<br>
> If it's possible to figure out programmatically what parameters are in their<br>
> default settings and what have been modified, then upon updating a node type<br>
> definition you could leave any modified parameters as-is and update<br>
> parameters that were previously at the default, to the new default. Houdini<br>
> acts like this, and it works pretty well.<br>
<br>
</div>This behavior breaks backwards compatibility though? Imagine if we did<br>
this for all properties in Blender, change them to the new default<br>
unless they have been modified. I think it would break many files. I<br>
don't know how you would deal with that in Houdini, maybe changing<br>
defaults doesn't happen much once a feature has been implemented?<br>
<span class="HOEnZb"><font color="#888888"><br>
Brecht</font></span></blockquote><div><br></div><div>When I was asking Lukas about this on the IRC I didn't know that's how the sockets worked -- if you change the value manually and do an update it gets reset to the new default (in my OSL comp node at least since I implemented it to reset from the file even if the socket exists). I was thinking that the default value was separate from the actual value so one could do a 'reset to default' operation on them.<br>
</div></div><br></div><div class="gmail_extra">So, yeah, probably not what people would expect and will break node trees unless they used another node as input.<br><br></div><div class="gmail_extra">On mine I think I'll add an optional parameter (which defaults to off) to the update function to reset the defaults for rapid prototyping with the intention of revisiting this issue once it's fully working.<br>
<br></div><div class="gmail_extra">Dan<br></div></div>