Jump to content

set label parameter with Python


csp

Recommended Posts

Hi,

 

is it possible using Python to set the string of a Label parameter? I have a function which creates a path and I want this path to be visible in this Label. I am calling the function with a button. Also is it possible this this string to contain variables as '$F4' in order to be updated every frame?

 

cheers

Link to comment
Share on other sites

Guest mantragora

Sure you can. Just grab the node and

node.parm('label').set('Something')
like on any other node parameter.

Remember that even if you have only one label named

'foo'
and you have couple columns added (for example 3), to modify third column in this label, you need to add number 3 to the label name:

node.parm('foo3').set('three')
But this is only when you have more than one column added. If it's only one it will be still named 'foo'

I have couple operators where I put into columns for example:

// column 1
Number of points before fuse:    `npoints(opinputpath(".",0))`
//column2 
Number of points after fuse:     `npoints(".")`
and display it on interface. Edited by mantragora
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.

Guest
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...