Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
overrides and parameter locks

overrides and parameter locks

2005-05-31       - By Guillaume Laforge

 Back
Reply:     1     2     3     4     5     6  

>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>&gt;I wasn't sure why you were creating new passes and deleting overrides.
That<br>&gt;seemed a bit drastic</div>
<div>&nbsp;</div>
<div>I'm a complicated man ;-)</div>
<div>&nbsp;</div>
<div>I made some test with your tip and I find that I need to swich in the
&quot;pass without override&quot; to update the render region in the &quot
;locked pass&quot;.</div>
<div>&nbsp;</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>&nbsp;</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&nbsp;the&nbsp;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>&nbsp;</div>
<div><span class="gmail_quote">2005/5/31, <a href="mailto:kim@(protected)">kim
@(protected)</a> &lt;<a href="mailto:kim@(protected)">kim@(protected)</a>&gt;
:</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>&gt;&gt;Can
you not just switch passes before making the change, switch back to
<br>&gt;&gt;view? The locks are only in effect in the pass on which there are
<br>&gt; overrides.<br>&gt;&nbsp;&nbsp;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>