Jump to content

Python - getting current parm in expression


Recommended Posts

I would love to know if I am using a python expression in a node's parameter.... is there a way using python to grab the name of the parameter currently being populated by the expression that you are writing?

(similar to how you can use kwargs['parm'] in an otl.

See attached scene where I have added a few more notes to try and explain this.




Link to comment
Share on other sites

Thanks Graham, you've saved the day once again! That works a treat. It has brought up another little python issue which I don't quite understand.

I am trying to reference a primitive attribute on my geometry via a local variable using python. It works in the hscript case but when I replicate it in python it doesn't seem to work.

I was wondering if you could take a look at the "hip" and see if I am doing something silly?

I realize that I haven't included the texture files so it will be hard to check if it is working, but they are quite big so I'd rather not upload them.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...