<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">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</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 &lt;<a href="mailto:matt@mke3.net">matt@mke3.net</a>&gt; wrote:<br>

&gt; If it&#39;s possible to figure out programmatically what parameters are in their<br>
&gt; default settings and what have been modified, then upon updating a node type<br>
&gt; definition you could leave any modified parameters as-is and update<br>
&gt; parameters that were previously at the default, to the new default. Houdini<br>
&gt; 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&#39;t know how you would deal with that in Houdini, maybe changing<br>
defaults doesn&#39;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&#39;t know that&#39;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 &#39;reset to default&#39; 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&#39;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&#39;s fully working.<br>
<br></div><div class="gmail_extra">Dan<br></div></div>