help needed please .... script non functional during mental ray render

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2005
Post help needed please .... script non functional during mental ray render

hi all .... i've got a small problem .... all suggestions welcome .....

Suppose I have a thousand objects in my scene, and all of them have a meshsmooth modifier in a disabled state.
Initially all the objects are static, and then they start moving. I need the meshsmooth of each object to be turned on only when it crosses a particular position in y, say $.pos.y > 100.
I need this happening during render time (with mental ray)....

I dont wish to go into each of the 1000 objects and add a script in there ....


This is what I tried till now :


I added a new object, a simple box into the scene, changed the rotation controller to a rotation script controller and type in the following :
---------------------------------------------------------
x = $sphere* as array --- suppose my objects are sphere01, sphere02 ... etc
for i in x do
(
if (i.pos.y > 100) then (i.modifiers[#Meshsmooth].enabled = true)
else (i.modifiers[#Meshsmooth].enabled = false)

)

quat 0 0 0 1
----------------------------------------------------------------


now, this works fine in the viewports, as well as if i use the default scanline renderer, but if i shift to mental ray, the script doesn't seem to work ....... please help.

thanks in advance
shibu

Last edited by shibumenon : 02 February 2005 at 08:09 AM. Reason: typo err
 
  02 February 2005
sos..... Bobo ..... please help me with the above problem ...... where am i going wrong?

thanks,
shibu
 
  02 February 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:27 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.