Re: overrides and parameter locks

Date : Tue, 31 May 2005 19:02:27 +0200
To : XSI(at)Softimage.COM
From : guillaume laforge <guillaume.laforge.3d(at)gmail.com>
Subject : Re: overrides and parameter locks
>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(at)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





 
2005/5/31, kim(at)aldis.org.uk <kim(at)aldis.org.uk>:
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(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.