supermac Posted February 26, 2011 Share Posted February 26, 2011 hello all, I learn again python on Houdini.. my knowledge in python are enough limited.. i search how i can change a parameter value if i'm in a other parameter.. i explain me: if i'm into "ty" parameter of my object and i say: if ch("tx") >= 10: ch("tx").set(11) or: f ch("tx") >= 10: ch("tx") = 11 there is no change.. i tried all i can imagine... but i can't find The solution.. i think that i must learn "logic" of python into Houdini.. First:: Please, someone can say me how i must write my code for change my parameter from an other parameter and, there is a tutorial other that HOM docs from Houdini? HOM docs is not for begginer like me! Sorry for my english.. Thank you for your help Best regard Quote Link to comment Share on other sites More sharing options...
graham Posted February 26, 2011 Share Posted February 26, 2011 The hou.ch() is a HOM alias to hou.Parm.evalParm() and is equivalent to the regular hscript expression function ch(). It returns a value. Your conditional statement is okay but your attempts to set the channel are wrong. To change a parameter you need to do something like this: parm("tx").set(11) Quote Link to comment Share on other sites More sharing options...
supermac Posted February 26, 2011 Author Share Posted February 26, 2011 hello, thank you very much.. i try this tomorow... Now i must go out.. thanks a lot. Best regard 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.