Khai opened this issue on Mar 24, 2009 · 22 posts
Khai posted Tue, 24 March 2009 at 2:00 PM
can someone please be a very cool person and create a script to change a figures default shading rate from the default .2 to an inputted value?
Sunfire posted Tue, 24 March 2009 at 2:06 PM
I second the request for such a script. Going in by hand and changing the shading rate on all the actors on a big busy scean is more daunting than the creating of the scene!
semidieu posted Tue, 24 March 2009 at 2:39 PM
It applies the entered value on all figures and props in the scene.
Rename the script as SetShadingRate.py (you must change the extension)l
Khai posted Tue, 24 March 2009 at 2:53 PM
I owe you one.. that works perfectly! thanks! :)
Sunfire posted Tue, 24 March 2009 at 2:58 PM
Me too, thanks. Love it.
semidieu posted Tue, 24 March 2009 at 3:04 PM
You're welcome :D
infinity10 posted Tue, 24 March 2009 at 10:22 PM
Crikey, you mean the shading rate is for individual scene components, and not the whole scene ?! I didn't know that ..
- grabs python -
Eternal Hobbyist
Khai posted Tue, 24 March 2009 at 11:10 PM
as well as. the Great BagginsBill pointed us at it.
semidieu posted Wed, 25 March 2009 at 5:30 AM
The value you set in the Render Settings is the value really used with the FireFly render engine. But if this value is lower than the one in the actor, it will use the actor's minimum shading rate.
So reducing the values in the actors and props allows to use even lower values in the FireFly render settings.
IsaoShi posted Wed, 25 March 2009 at 9:50 AM
Or increasing the shading rate for all actors apart from the critical ones in your scene should allow for faster renders... n'est ce pas?
"If I were a shadow, I know I wouldn't like to be half of
what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki
Murakami)
semidieu posted Wed, 25 March 2009 at 11:07 AM
In theory, yes :)
infinity10 posted Wed, 25 March 2009 at 12:34 PM
Geewhiz... I learned some things here which explain A LOT of my rendering results. Honestly did not know about these until just now.
Eternal Hobbyist
Sunfire posted Wed, 25 March 2009 at 1:15 PM
Khai and I are just passing on what we learned from BagginsBill, and are glad to do so. :)
IsaoShi posted Wed, 25 March 2009 at 3:54 PM
So I stitched together this script, based on SVDL's TextureFilter dialogue and the code that semidieu gave us above.
I'm not yet clever enough in Python Widgets to combine the two dialogues into a single screen. The script first asks you for a shading rate value, then for what you want to apply it to.
If someone wants to tidy it up by combining the two dialogues, please feel free!
As before, change the file extension from .txt to .py after download.
(edit) I just realised I have not yet tested this on a figure... I'll do that now!
"If I were a shadow, I know I wouldn't like to be half of
what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki
Murakami)
semidieu posted Thu, 26 March 2009 at 2:15 PM
Hi!
Thanks for the edited version! Instead of doing like this, you should 'simply' ask if you want to apply to all or only to the currently selected figure or actor.
IsaoShi posted Thu, 26 March 2009 at 2:50 PM
Thanks for the advice, semidieu. I know what you mean, but I don't know enough about Python coding to do it myself.
I could probably find bits and pieces from other scripts to tack together, but I wouldn't know how to write them myself.
"If I were a shadow, I know I wouldn't like to be half of
what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki
Murakami)
semidieu posted Thu, 26 March 2009 at 3:04 PM
IsaoShi posted Tue, 31 March 2009 at 3:05 PM
oops... forgot to say thanks for the new version. :O)
"If I were a shadow, I know I wouldn't like to be half of
what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki
Murakami)
semidieu posted Tue, 31 March 2009 at 3:38 PM
You're welcome :)
Khai posted Wed, 01 April 2009 at 10:07 AM
thank you :)
MistyLaraCarrara posted Wed, 19 December 2012 at 2:36 PM
kewl. Thanks!
♥ My Gallery Albums ♥ My YT ♥ Party in the CarrarArtists Forum ♪♪♪ 10 years of Carrara forum ♥ My FreeStuff
markschum posted Wed, 19 December 2012 at 4:59 PM
drat , late to the party again ;)
I just posted mine on a differnt question.