  | | | overrides and parameter locks | overrides and parameter locks 2005-05-31 - By Guillaume Laforge
Back >I wasn't sure why you were creating new passes and deleting overrides. That >seemed a bit drastic I'm a complicated man ;-) I made some test with your tip and I find that I need to swich in the "pass without override" to update the render region in the "locked pass". Here is a draft script who help a bit. I select an object in the pass with overrides and run the script. It select the object material but in the pass without override. Then I can open the render tree and edit the parameters. It supposed there are no overrides in the default pass. //Select_Mat_from_first_pass.js //guillaume.laforge.3d@(protected) <http://gmail.com> //select an object and run var oSel = Selection(0); var oCurrentPass = GetCurrentPass(); var oPasses = ActiveProject.ActiveScene.Passes; //get the default pass (with no overrides) oPass = oPasses(0); SetCurrentPass(oPass); //Get the material from the default pass SelectObj(oSel.Material) //switch back to current pass SetCurrentPass(oCurrentPass);
To update the render tree (I'm to lazy, but it should'nt be difficult to make it work inside the first script) :
//Update the locked material var oCurrentPass = GetCurrentPass(); var oPasses = ActiveProject.ActiveScene.Passes; oPass = oPasses(0); SetCurrentPass(oPass); SetCurrentPass(oCurrentPass);
Cheers,
Guillaume Laforge CG artist www.vol2nuit.fr <http://www.vol2nuit.fr>
2005/5/31, kim@(protected) <kim@(protected)>: > > guillaume laforge writes: > > >>Can you not just switch passes before making the change, switch back to > >>view? The locks are only in effect in the pass on which there are > > overrides. > > Yes, that's what I do. > > I wasn't sure why you were creating new passes and deleting overrides. > That > seemed a bit drastic > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
<div>>I wasn't sure why you were creating new passes and deleting overrides. That<br>>seemed a bit drastic</div> <div> </div> <div>I'm a complicated man ;-)</div> <div> </div> <div>I made some test with your tip and I find that I need to swich in the "pass without override" to update the render region in the " ;locked pass".</div> <div> </div> <div>Here is a draft script who help a bit. I select an object in the pass with overrides and run the script. It select the object material but in the pass without override. Then I can open the render tree and edit the parameters. It supposed there are no overrides in the default pass. </div> <div> </div> <div>//Select_Mat_from_first_pass.js <br>//guillaume.laforge.3d@<a href="http:/ /gmail.com">gmail.com</a></div> <div><font size="2"> <p>//select an object and run<br>var oSel = Selection(0);<br>var oCurrentPass = GetCurrentPass();<br>var oPasses = ActiveProject.ActiveScene.Passes;<br>//get the default pass (with no overrides)<br>oPass = oPasses(0);<br> SetCurrentPass(oPass);<br>//Get the material from the default pass<br>SelectObj (oSel.Material)<br>//switch back to current pass<br>SetCurrentPass(oCurrentPass) ;</p> <p>To update the render tree (I'm to lazy, but it should'nt be difficult to make it work inside the first script) :</p> <p><font size="2">//Update the locked material<br></font><font size="2">var oCurrentPass = GetCurrentPass();<br>var oPasses = ActiveProject.ActiveScene .Passes; <br>oPass = oPasses(0);<br>SetCurrentPass(oPass);<br>SetCurrentPass (oCurrentPass); </font></p> <p><font size="2">Cheers,</font></p> <p><font size="2">Guillaume Laforge<br>CG artist<br><a href="http://www .vol2nuit.fr">www.vol2nuit.fr</a></font><font size="2"></font></p></font><br><br ><br><br> </div> <div><span class="gmail_quote">2005/5/31, <a href="mailto:kim@(protected)">kim @(protected)</a> <<a href="mailto:kim@(protected)">kim@(protected)</a>> :</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0 .8ex; BORDER-LEFT: #ccc 1px solid">guillaume laforge writes:<br><br>>>Can you not just switch passes before making the change, switch back to <br>>>view? The locks are only in effect in the pass on which there are <br>> overrides.<br>> Yes, that's what I do.<br><br>I wasn't sure why you were creating new passes and deleting overrides. That<br>seemed a bit drastic <br>---<br>Unsubscribe? Mail <a href="mailto:Majordomo@(protected)">Majordomo @(protected)</a> with the following text in body:<br>unsubscribe xsi<br>< /blockquote></div><br>
|
|
 |