csp Posted May 22, 2014 Share Posted May 22, 2014 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 Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted May 22, 2014 Share Posted May 22, 2014 (edited) 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 May 22, 2014 by mantragora Quote Link to comment Share on other sites More sharing options...
csp Posted May 23, 2014 Author Share Posted May 23, 2014 thanks mantragora, very informative! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.