konstantin magnus Posted December 27, 2018 Share Posted December 27, 2018 How can I print an uneditable result to a label (or any other suitable text field)? Quote Link to comment Share on other sites More sharing options...
Atom Posted December 27, 2018 Share Posted December 27, 2018 (edited) Isn't that just a set on a parm? # Assumes you have a label added to the node. node = hou.node("/obj/pythonscript1") node.parm("labelparm").set("41") Edited December 27, 2018 by Atom Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 30, 2018 Author Share Posted December 30, 2018 Thanks Atom! node = hou.pwd() geo = node.geometry() text = node.parm('text').eval() res = len(text) node.parm('result').set( str(res) ) 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.