Forum: Poser Python Scripting


Subject: Anyone know what the kCode for Cartoon with Outline is?

destro75 opened this issue on Jan 04, 2007 · 5 posts


destro75 posted Thu, 04 January 2007 at 10:10 AM

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

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!