  | | | Reference models and light lists-dont work | Reference models and light lists-dont work 2005-02-28 - By Ludovick William Michaud
Back Ok it's all under control If you ever get that kind of error. The way I understand it is that the AddObjectToShader command is an undoable command runned at Post Load script time which is no undoable. Thus XSI panics and spits out an error.
So just accept the error in the language you work in and keep going. That should do the trick.
Ludo
Ludovick William Michaud (loo-doh-vik wil-ee-am me-show) Technical Director Janimation Inc. www.janimation.com
Ludovick William Michaud said the following on 2/28/2005 2:52 PM:
> hola folks, > > Long time no talk :-) > The problem is with the command AddObjectToShader. It's not litterally > crashing it's just outputting an error and doesn't run the full command. > > #ERROR : 2028-REND-AddObjectsToShader - Traceback (most recent call last): > # File "<Script Block >", line 13, in RefModel_PostLoadAfterMod > # Application.AddObjectsToShader (oParam.Value, str(oModel(0).Name) > + "." + str(oParam.name) + ".Material.Diffusion.lights") > # File "<COMObject Application>", line 2, in AddObjectsToShader > #COM Error: Invalid argument specified. - [line 12] > #ERROR : 2109 - Failed to execute the script: > P:\Suffering2_Trailer_FSC\03_Tools\Scripts\Rendering\LWM_ReloadLightList.pys > > Basically I got the script to work when it's not called from > PostLoadScript and AddObjectToShader screws up when called through > Post Load Script. So now I'm doing a OnEndOpenScene events and it's > working fine. I still would like to have to work through the > PostLoadScript function so when the guys update the model they don't > have to reload the scene. > > So at this point I have softimage support on the problem as we are > desperately need to squeeze 10 days of full renders in 6. > > Thanks so much everyone. I hope this gives you more info for more help. > > Ludo > > Ludovick William Michaud > (loo-doh-vik wil-ee-am me-show) > Technical Director > Janimation Inc. > www.janimation.com > > > greg punchatz said the following on 2/28/2005 1:52 PM: > >>We are looking at that, but its crashing! Ludo could give you more >>details on what he is trying. >> >>-- --Original Message-- -- >>From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf >>Of Martin Matzeder >>Sent: Monday, February 28, 2005 1:52 PM >>To: XSI@(protected) >>Subject: Re: Reference models and light lists-dont work >> >>Hi Greg, >> >>maybe You can use the postloadscript to update this automatical after >>load. >> >>Matin >>greg punchatz wrote: >> >> >> >>>Hey Guys, >>> >>>I am wondering if any of you have come across this problem. We are >>>working with reference models on a big project and have run into a >>>problem. Our characters are using the diffusion shader and it requires >>>you to use a light list. While the shaders will let you pick the lights >>>in the scene, if you reload the scene the light list is lost due to the >>>models being referenced. >>> >>>Has anyone come up with a workaround for using shaders in a ref model >>>that uses light shader? >>> >>>Greg Punchatz >>> >>>--- >>>Unsubscribe? Mail Majordomo@(protected) with the following text in >>> >>> >>body: >> >> >>>unsubscribe xsi >>> >>> >>> >>> >>> >> >>--- >>Unsubscribe? Mail Majordomo@(protected) with the following text in >>body: >>unsubscribe xsi >> >>--- >>Unsubscribe? Mail Majordomo@(protected) with the following text in body: >>unsubscribe xsi >> >>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000066"> <font face="Arial Narrow">Ok it's all under control<br> If you ever get that kind of error. The way I understand it is that the AddObjectToShader command is an undoable command runned at Post Load script time which is no undoable. Thus XSI panics and spits out an error.<br> <br> So just accept the error in the language you work in and keep going. <br> That should do the trick.<br> <br> </font> <div class="moz-signature"> <title>Ludo Signature</title> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1400" name="GENERATOR"> <div align="left"><font face="Arial Narrow">Ludo<br> <br> </font><font face="Arial Narrow"><font size="2">Ludovick William Michaud<br> (loo-doh-vik wil-ee-am me-show)<br> Technical Director<br> Janimation Inc.<br> <a class="moz-txt-link-abbreviated" href="http://www.janimation.com">www .janimation.com</a></font><font size="2"> </font></font></div> </div> <br> <br> Ludovick William Michaud said the following on 2/28/2005 2:52 PM: <blockquote cite="mid4223848A.3020903@(protected)" type="cite"> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> <title></title> <font face="Arial Narrow">hola folks, <br> <br> Long time no talk <span class="moz-smiley-s1"><span> :-) </span></span><br> The problem is with the command AddObjectToShader. It's not litterally crashing it's just outputting an error and doesn't run the full command.<br> <br> </font><font face="Arial Narrow">#ERROR : 2028-REND-AddObjectsToShader - Traceback (most recent call last):<br> # File "<Script Block >", line 13, in RefModel_PostLoadAfterMod<br> # Application.AddObjectsToShader (oParam.Value, str(oModel(0) .Name) + "." + str(oParam.name) + ".Material.Diffusion.lights")<br> # File "<COMObject Application>", line 2, in AddObjectsToShader<br> #COM Error: Invalid argument specified. - [line 12]<br> #ERROR : 2109 - Failed to execute the script: P:\Suffering2_Trailer_FSC\03_Tools\Scripts\Rendering\LWM_ReloadLightList.pys< /font><br> <font face="Arial Narrow"><br> Basically I got the script to work when it's not called from PostLoadScript and AddObjectToShader screws up when called through Post Load Script. So now I'm doing a OnEndOpenScene events and it's working fine. I still would like to have to work through the PostLoadScript function so when the guys update the model they don't have to reload the scene. <br> <br> So at this point I have softimage support on the problem as we are desperately need to squeeze 10 days of full renders in 6.<br> <br> Thanks so much everyone. I hope this gives you more info for more help. <br> <br> </font> <div class="moz-signature"> <title>Ludo Signature</title> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1400" name="GENERATOR"> <div align="left"><font face="Arial Narrow">Ludo<br> <br> </font><font face="Arial Narrow"><font size="2">Ludovick William Michaud<br> (loo-doh-vik wil-ee-am me-show)<br> Technical Director<br> Janimation Inc.<br> <a class="moz-txt-link-abbreviated" href="http://www.janimation.com">www .janimation.com</a></font><font size="2"> </font></font></div> </div> <br> <br> greg punchatz said the following on 2/28/2005 1:52 PM: <blockquote cite="mid98D1772C9CB1A441928AEB0D161149ED82EB2C@(protected)" type="cite"> <pre wrap="">We are looking at that, but its crashing! Ludo could give you more details on what he is trying.
-- --Original Message-- -- From: <a class="moz-txt-link-abbreviated" href="mailto:owner-xsi@(protected)">owner-xsi@(protected)</a> [<a class="moz-txt-link-freetext" href="mailto:owner-xsi@(protected)">mailto :owner-xsi@(protected)</a>] On Behalf Of Martin Matzeder Sent: Monday, February 28, 2005 1:52 PM To: <a class="moz-txt-link-abbreviated" href="mailto:XSI@(protected)">XSI @(protected)</a> Subject: Re: Reference models and light lists-dont work
Hi Greg,
maybe You can use the postloadscript to update this automatical after load.
Matin greg punchatz wrote:
</pre> <blockquote type="cite"> <pre wrap="">Hey Guys,
I am wondering if any of you have come across this problem. We are working with reference models on a big project and have run into a problem. Our characters are using the diffusion shader and it requires you to use a light list. While the shaders will let you pick the lights in the scene, if you reload the scene the light list is lost due to the models being referenced.
Has anyone come up with a workaround for using shaders in a ref model that uses light shader?
Greg Punchatz
--- Unsubscribe? Mail <a class="moz-txt-link-abbreviated" href="mailto:Majordomo@(protected)">Majordomo@(protected)</a> with the following text in </pre> </blockquote> <pre wrap=""><!---->body: </pre> <blockquote type="cite"> <pre wrap="">unsubscribe xsi
</pre> </blockquote> <pre wrap=""><!----> --- Unsubscribe? Mail <a class="moz-txt-link-abbreviated" href="mailto:Majordomo@(protected)">Majordomo@(protected)</a> with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail <a class="moz-txt-link-abbreviated" href="mailto:Majordomo@(protected)">Majordomo@(protected)</a> with the following text in body: unsubscribe xsi </pre> </blockquote> </blockquote> </body> </html>
|
|
 |