konstantin magnus Posted March 30, 2018 Share Posted March 30, 2018 Hi, I would like to overwrite values of a parameter field by clicking on a button (see image). Thank you! Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted April 1, 2018 Share Posted April 1, 2018 (edited) hou.pwd().parm('scale').set(hou.pwd().evalParm('scale') / 100.0) Button python callback Edited April 1, 2018 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted April 1, 2018 Author Share Posted April 1, 2018 Thank you Alexey! I just used this then for actually setting a value without calculating. hou.pwd().parm('scale').set(0.01) Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted April 1, 2018 Author Share Posted April 1, 2018 Sorry again, but how do I set a Vector2 in that? I tried all sorts of combinations like hou.pwd().parm('res_output').set(hou.Vector2(1024,1024)) Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted April 1, 2018 Share Posted April 1, 2018 2 minutes ago, konstantin magnus said: Sorry again, but how do I set a Vector2 in that? I tried all sorts of combinations like hou.pwd().parm('res_output').set(hou.Vector2(1024,1024)) hou.pwd().parmTuple('res_output').set(hou.Vector2(1024,1024)) 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.