Jump to content

python listing primitive groups


nahee

Recommended Posts

Hi,

What python command would I need to list primitive groups in a node?

There seem to be a lot of associated python methods/classes

but all have "unimplemented" flagged, is this at all possible yet?

If not, does there exist a hscript way of doing this?

Thanks

Link to comment
Share on other sites

There is no current HOM support for groups so you are unfortunately relegated to using hscript expressions to access this information. However, some time ago I wrote some wrapper classes and functions to add basic read-only support for accessing groups of primitives and points. There is a thread about it somewhere. Here is the latest version which also has some support for DOP group access.

grouputils.tar.gz

Edited by graham
Link to comment
Share on other sites

Propably this link is what you are looking for.

EDIT: Ups, Graham was faster. Anyway, link connects to SideFX forum where he gives exactly the same answer.

Edited by SWANN
Link to comment
Share on other sites

There is no current HOM support for groups so you are unfortunately relegated to using hscript expressions to access this information. However, some time ago I wrote some wrapper classes and functions to add basic read-only support for accessing groups of primitives and points. There is a thread about it somewhere. Here is the latest version which also has some support for DOP group access.

Nice hack, instead of me resorting to hou.hscriptExpression() I'll let your script do it :)

Works like a charm.

Thanks

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