Wed, Jan 22, 7:43 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 Dec 02 3:16 pm)

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: P6: Hair of the dog that bit me.


kaveman ( ) posted Sat, 09 April 2005 at 3:01 AM · edited Mon, 18 November 2024 at 9:30 PM

Hi all, I have a problem on my Mac and P6 (sorry no tklinker) and hope a simple script will give me a work around. The problem is that my Mac no longer loads hair nodes properly, each time it loads hair it takes the colours from the Poser Surface and puts them into the Hair Node Colours. Sadly these are normally black. So each time I load anything with hair, it turns black. The colour info is in the file so I can copy the right values. A little script that could step through the hair nodes after I have loaded them and put colour into the Root, Tip and Specular properties would save me a lot of guess work and time. I don't mind editing the file to put in a set of colours by hand so no user interface is needed. Don't know if this can be done? I would have a crack at it myself, but Python is all new to me. I'm just a hobbiest so would offer my undying gratitude and a nice gift from New Zealand. Thanks for any help you can give. kaveman (Kevin Bracey)


nruddock ( ) posted Sat, 09 April 2005 at 10:11 AM

Attached Link: http://www.renderosity.com/messages.ez?Form.ShowMessage=2196164

file_216633.jpg

I assume your refering to the problem mentioned in the linked thread.

Try the atteched script and let me know if it's doing what you want.


nruddock ( ) posted Sat, 09 April 2005 at 12:03 PM

Forgot to say that you run if from either the File menu, Run Python Script option or by assigning it to one of the Python Buttons (if you do this you may want to edit the button definitions so that the assignment persists across restarts).


kaveman ( ) posted Sat, 09 April 2005 at 8:12 PM

Yes that's the problem I'm working around. I've done what CL suggested but the problem persists:( Your script worked very well, I might poke around and see if I can get it to change just the currently selected figure. Be a good exercise for me. But I'm moving forward again now, thanks. Hope you get good mileage from the hot-pants. Thanks! kaveman


nruddock ( ) posted Sat, 09 April 2005 at 8:14 PM · edited Sat, 09 April 2005 at 8:19 PM

Attached Link: http://forum.daz3d.com/viewtopic.php?t=17848

Just post here if you can't figure out how to change it.

Also it seems your not alone in having this problem (see linked thread at DAZ Forums).

Message edited on: 04/09/2005 20:19


an0malaus ( ) posted Mon, 18 April 2005 at 10:40 PM · edited Mon, 18 April 2005 at 10:42 PM

There is a way to preserve hair colours saved in PZ3 files from P6 when the file is re-loaded. Once the colour values are correctly set, using nruddock's script or other methods, go to frame 1 and then turn on animation (click the little key to the left of the colour box and choose animation in the popup) for each of the three root, tip and specular colours of the hair in the material room.

This causes the colour R,G,B values to be stored as separate Hair_Hair_0_R, Hair_Hair_0_G,...Hair_Hair_2_B value parameters on the hair object (root=0, tip=1, specular=2). When reloaded, the animation parameters override whatever P6 itself may have set the hair colours to (black).

Message edited on: 04/18/2005 22:42



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.


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.