Forum: Poser Python Scripting


Subject: A python to apply shaders in P6?

Aery_Soul opened this issue on Jan 15, 2006 ยท 16 posts


PoseWorks posted Thu, 26 January 2006 at 3:09 AM

To modify shader trees in P5, you'll need to do the following in Python:

  1. Save a CR2 (if you're using a figure) or a PZ3 (if a prop--since SaveLibraryProp has never worked properly)

  2. Search the file to find the shader tree you want

  3. Parse the shader tree to get the components that you want

  4. Ponder the reason why CL never added Python support for the Material Room in P5

  5. Make modifications to that data and translate it back into Poser's library code

  6. Write a new PZ2 with the modified shader tree

  7. Apply the PZ2 to the figure/prop

  8. Cry yourself to sleep

Message edited on: 01/26/2006 03:10