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?
 
Reference models and light lists-dont work

Reference models and light lists-dont work

2005-02-28       - By Ludovick William Michaud

 Back
Reply:     1     2     3     4     5     6  

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">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000066">
<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>
#&nbsp; File "&lt;Script Block &gt;", line 13, in RefModel_PostLoadAfterMod<br>
#&nbsp;&nbsp;&nbsp; Application.AddObjectsToShader (oParam.Value, str(oModel(0)
.Name)
+ "." + str(oParam.name) + ".Material.Diffusion.lights")<br>
#&nbsp; File "&lt;COMObject Application&gt;", 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&nbsp; 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>
</body>
</html>