Jump to content

Button callback script, multiline


Recommended Posts

Does anybody know how to do button callback scripts so that I can press multiple buttons?

I have a string parameter where I enter the nodes that I want to be checked for buttons. I want to iterate over that with a callback script but I can't work out a way to get multiline Python expressions to work in the parameter interface.

Any ideas?

Link to comment
Share on other sites

I'm not sure if I follow, but the answer for the muli-line expression is to call either a function stored in hdaModule or separate lines with semicolons.

btw. we should catch up at some point in Vancouver :)

Edited by kubabuk
  • Thanks 1
Link to comment
Share on other sites

Hey Kuba, thanks, I tried the hdaModule trick and it worked, I think. I put a script in type properties and call it when the button is pressed. It then loops over all the relevant other buttons and presses them too. It looks like it's working.

Oh, and I think there's another Vancouver Houdini user group meeting in the making if I'm not mistaken.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...