Sun, Feb 9, 8:51 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 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: Anyone know what the kCode for Cartoon with Outline is?


destro75 ( ) posted Thu, 04 January 2007 at 10:10 AM · edited Sun, 09 February 2025 at 8:49 PM

Attached Link: Comic Outline tutorial (jwebster45206)

I'm trying to automatically switch the scene to cartoon shading with the outline. I only have the P6 python manual with me, so I don't know if the P7 one has it. P6 says kDisplayCodeCARTOONNOLINE for the cartoon shader without the line (duh!)

I think it might the kDisplayCodeSKETCHSHADED, but I'm not sure.

What I'm trying to do is implement a script that automatically cycles through the scene, and changes all materials to the settings jwebster discusses in the attached tutorial.

I'm trying to set up the script so that the user can set the scene up in their normal environment (texture shaded, flat shaded, etc.) and then run the script to make everything toonish.

(Been absent from the script writing for a while, but now that I've had time to play more with P7, I'm back to getting some things done.)

TIA for any help!


EnglishBob ( ) posted Thu, 04 January 2007 at 10:26 AM

Attached Link: Poser : Unofficial CR2 File Specification

From "Poser : Unofficial CR2 File Specification" the possible settings are: • USEPARENT • CARTOONNOLINE • FLATLINED • SMOOTHLINED • SHADEDOUTLINE • SKETCHSHADED • FLATSHADED • TEXTURESHADED • SHADED • HIDLINE • SILHOUETTE • EDGESONLY I think it's FLATLINED that you want.


destro75 ( ) posted Thu, 04 January 2007 at 10:38 AM · edited Thu, 04 January 2007 at 10:50 AM

UGH! I just saw the FLATLINED you were talking about. Blast my eyes for scanning too quickly!

If you already saw what I wrote, just ignore it. I'm an idiot.


nruddock ( ) posted Thu, 04 January 2007 at 11:00 AM

I think you want kDisplayCodeSKETCHSHADED

For future reference the order they are in the tool bar is :-

kDisplayCodeSILHOUETTE<br></br>kDisplayCodeEDGESONLY<br></br>kDisplayCodeWIREFRAME<br></br>kDisplayCodeHIDDENLINE<br></br>kDisplayCodeSHADEDOUTLINED<br></br>kDisplayCodeFLATLINED<br></br>kDisplayCodeFLATSHADED<br></br>kDisplayCodeCARTOONNOLINE<br></br>kDisplayCodeSKETCHSHADED<br></br>kDisplayCodeSMOOTHSHADED<br></br>kDisplayCodeSMOOTHLINED<br></br>kDisplayCodeTEXTURESHADED<br></br>kDisplayCodeUSEPARENTSTYLE


destro75 ( ) posted Thu, 04 January 2007 at 1:56 PM

So I was on target in the first place. Thanks Noel.

Happy New Year to both of you!


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.