Jason Posted March 6, 2006 Share Posted March 6, 2006 Hi there, I have an HDA which has a field of type string/operator-path. I'd like to disable this field if there is anything wired into the operator. Does anyone know if this is possible? Basically I would like the user to either connect a wire to this node OR specify a node in the string field. Any ideas if disablewhen can accept expressions at all? Thanks, Jason Quote Link to comment Share on other sites More sharing options...
michael Posted March 6, 2006 Share Posted March 6, 2006 welll first of all...this should be in General Houdini, not general Chat the 'disable when' thingajig doesn't accept expressions, just parameter|value pairs so what you could do is set up a dummy parm called has_input at the top level then inside rig up an integer parameter with a opninputs("") > 0 expression that sends a 0 when there is no input and a 1 when there is...then test that param in the 'disable when' of the parameter you want to control...kinda hacky but I think it would work.... HTH Quote Link to comment Share on other sites More sharing options...
michael Posted March 6, 2006 Share Posted March 6, 2006 er...wait, something about that doesn't work... something like this should be do-able...just a bit busy to work it out....thekenny isn't doing anything... Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 6, 2006 Share Posted March 6, 2006 I think you have it basically correct, I do it all the time. Create a dummy parameter (foo) on the hda control panel, it can even be hidden, put in there an opninputs expression and then add a disable when {foo 1} I think that's what you said, it works. Quote Link to comment Share on other sites More sharing options...
Jason Posted March 7, 2006 Author Share Posted March 7, 2006 Why thank you! I shoulda thought of that:) And in fact, I'm sure I knew that before and it just escaped me... again. 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.