Fri, Nov 22, 9:05 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: 2024 Sep 18 2:50 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: Looking for list of internal names


Mason ( ) posted Sun, 24 December 2006 at 8:20 PM · edited Fri, 22 November 2024 at 4:16 PM

I want to change the highlight size via script. All of the current wacro scripts use InputByInternalName to access various properties of the shader trees. I cannot find or figure out the name of the highlight size. I found Highlight_Color and Highlight_Value. Highlight_size does not work neither does Ns.


Mason ( ) posted Sun, 24 December 2006 at 8:34 PM

Ok I was able to get what I wanted with Input but I have to hard code a 4 in for the highlight_size index which doesn't seem very stable to me since the root node sequence could change.


stewer ( ) posted Wed, 27 December 2006 at 8:42 AM

It's "Roughness". You can simply print out the internal names of all the inputs in a node with a wacro like this:

def printInputs(mat):
   
   tree = mat.ShaderTree()
   root = tree.Node(0)
   for node in tree.Nodes():
      for input in node.Inputs():
         print input.InternalName()
 
mats = poser.Scene().WacroMaterials()
if (mats == None):
        poser.DialogSimple.MessageBox( "Please select a material first.")
else:
        for mat in mats:
                printInputs(mat)


Mason ( ) posted Mon, 01 January 2007 at 9:22 PM

Thanks!


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.