Sat, Nov 9, 11:33 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Toon ID, set with script?


raven ( ) posted Sat, 18 August 2007 at 11:11 AM · edited Wed, 06 November 2024 at 6:34 AM
Online Now!

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.



nruddock ( ) posted Sat, 18 August 2007 at 3:59 PM

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.


semidieu ( ) posted Sun, 19 August 2007 at 4:49 AM

I have made a scroll list GUI... and also a figure/props manager based on this scroll list. So it would be easy to create such a thing...


raven ( ) posted Sun, 19 August 2007 at 2:41 PM
Online Now!

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.



semidieu ( ) posted Sun, 19 August 2007 at 2:47 PM

OK... I will look at this as soon as possible !


semidieu ( ) posted Sun, 19 August 2007 at 3:59 PM

file_385759.jpg

Here is it... 

Download -> Toon ID Editor

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.


semidieu ( ) posted Sun, 19 August 2007 at 4:00 PM

And for thos who wants... the code isn't compiled... So you can check it  and edit it !

But, I'm not a professional programmer, so the code is certainly not done how it "should be"...


raven ( ) posted Sun, 19 August 2007 at 4:58 PM
Online Now!

file_385775.jpg

Thanks semidieu, I have installed it and it rocks! A quick pic attached to show why I requested it, and to also show an anomly. For some reason, the script isn't picking up the eyebrows material on Aiko3 or V3, I assume that would also hold true for M3 D3 too. That is easily fixed in the mat room manually though.

Many thanks for this, and so quickly too. :)
Cheers!!



semidieu ( ) posted Sun, 19 August 2007 at 5:14 PM

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 !


raven ( ) posted Sun, 19 August 2007 at 6:02 PM
Online Now!

Thankyou semidieu! An easy remedy, I like that ;)
A wonderfully useful script.
My thanks again :)



QSabot ( ) posted Tue, 15 January 2008 at 8:33 PM

Anyone tested this in Poser 5 yet?


semidieu ( ) posted Wed, 16 January 2008 at 7:52 AM

I'm pretty sure some functions are Poser 6 and 7 only...  sorry. Poser 5 access to the material room is not complete.


QSabot ( ) posted Wed, 16 January 2008 at 9:29 PM

You mean, P5 has a less-developed Material Room than later versions.  (I tried it, BTW, in P5.  Doesn't work.  No biggie.)


markschum ( ) posted Wed, 16 January 2008 at 11:07 PM

Poser 5 has less of the materials open to access by python . 


svdl ( ) posted Thu, 17 January 2008 at 9:29 AM

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

My gallery   My freestuff


mikachan ( ) posted Thu, 07 May 2009 at 8:24 PM

awwww, the download link doesn't seem to work anymore.. anyone have a new one?


semidieu ( ) posted Fri, 08 May 2009 at 4:13 AM

I had to change my server... And some files weren't re-uploaded... I uploaded it again :)


Privacy Notice

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.