Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Quote - Hi Python gurus, would it be possible to have a Python script that would allow you to set a specified Toon ID for all parts of a figure/prop at once, or able to set the same number to different parts?
Yes, it's possible.
The "ToonID" is just an input the can be set like any of the others.
The important thing is how subtle you need to be, setting a value for all of a figure or prop is straight forward, if you want to be more selective (material wise) then it needs a more complicated GUI.
I'd prefer the option to be selective, after all, with that option it's always possible to set all or none if needs be.
semidieu, it was your conform figures script combined with a post in the Poser forum by wolf359 regarding toon rendering that gave me the idea :)
A version whereby you could select the relevent material zones of the figure/prop and then input the toon id number would be excellent if possible (and not too much trouble) :)
Again, thanks either way.
Tested in Poser 7 and Poser 6 (PC version). I know it will (should) work on Mac, Poser 7 SR2.
For Poser 7 users, once unzipped in MAIN POSER FOLDER, it is located under "ShaderWorks Utilities" in the Script Menu (don't forget to restart Poser)
For Poser 6 users, you will have to browse to:
"runtime/Python/poserscripts/scriptsmenu/shaderworks utilities/"
Instruction...
Check all the materials you want to edit (clicking the figure/props name will select/unselect all materials).
Hit the button "Change ID" and select a number.
When everything is change like you want, click OK.
Many thanks for this, and so quickly too. :)
Cheers!!
This is duw to the fact that it's a transparent material... I didn't knew that transparent materials are also "Tooned":
It's easily changed:
At the end of the script, search for:
FigAndMat = GenerateFiguresWithMaterials(0)
and replace the value 0 by 1, ie
FigAndMat = GenerateFiguresWithMaterials(1)
Every materials will be shown, even the transparent ones !
Quote - Poser 5 has less of the materials open to access by python .
You might change "less" to "almost nothing". The only way to change materials by script in Poser is having the script concoct a .mt5 file and apply it.
Only the P4 material options are open to Python in Poser 5.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Hi Python gurus, would it be possible to have a Python script that would allow you to set a specified Toon ID for all parts of a figure/prop at once, or able to set the same number to different parts? The reason I ask is because if you use toon outlines all the material zones get their own toon id number, which means the outlines affect all the zones, not a good look, and some figures have so many zones it gets a bit RSI clicking through each one to change the ID number.
Many thanks either way.