Search the Community
Showing results for tags 'parms'.
-
Hello, I've been having trouble trying to replicate the "copy parameter/paste relative references" process of referencing parameters from one node to another in python. I understand you can write an expression in the parameter like: evalParm('../box1/tx') but I'd like to be able to do this in the python source editor. This chunk of code copies the translate x from box1 and pastes the value into sphere1's tx, however it doesn't connect the two like the expression above does. boxy = hou.node('/obj/testGeo/box1') ball = hou.node('/obj/testGeo/sphere1') ball.setParms({'tx':boxy.evalParm('tx'), 'ty':0.55}) Essentially I want the parameters to be linked so that if I change box1 tx, sphere1 tx is also changed. Any ideas on what I'm missing to make that connection permanent?
-
Hello, I want to create button to set all my parameters to some value [for example 1]. I did something like this: x = hou.node('/obj/geo') x.parmTuple(str(p.name() for p in x.parmTuples()).set(1,1,1) [/CODE] AttributeError: 'NoneType' object has no attribute 'set' I suppose it is ultra simple [to set value for all parms] but I can't figue out how to deal with it.