Jump to content

Adding a joint selection to custom parameter interface


Recommended Posts

Anyone know how to add a joint selection action to a custom interface? I'd like to add something to an HDA I'm working on like what you see on the parent joints SOP for instance. You can click the selection arrow and fire the viewer state and select the joint(s) in the viewport and the string field will populate with the name attribute.

I see that there's a script_action attached to the string field. When I copy it, I get:

from kinefx.ui import rigtreeutils
rigtreeutils.selectPointGroupParm(kwargs)

But when I go to use it, I get a syntax error.

Link to comment
Share on other sites

Stupid... I was pasting the script action into the "parameter" section of the edit parameters dialog, in the list of tags at the bottom. But it doesn't paste carriage returns when you do it that way, so the script was erroring out.

All you have to do is paste the above into the "action button" tab, where it belongs.

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...