Jump to content

Preferred way to move selected components into group field


beeemtee

Recommended Posts

Hi,

what is the best way to put the content of the component selection into

the group field of a newly created SOP operator? (for example a VOP SOP)

Could the soptoolutils module help in this?

Thanks in advance!

Mate

Link to comment
Share on other sites

If you've manually created your operator, once you have a hou.GeometrySelection for whatever components you want, just call hou.GeometrySelection.mergedSelectionString() to get the string of components and assign that to the group field.

If you want Houdini to take care of the operator creation as well you can use something like soptoolutils.scriptSopFilterTool().

Link to comment
Share on other sites

  • 2 weeks later...

Thanks!

Is there an explanation somewhere how the soptoolutils module should be used?

The documentation included in the source seems to be rather incomplete.

Mate

Edited by beeemtee
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...