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!