Houdini to Maya | export a better structured alembic file

Usually Maya needs a better structured alembic file. This is one way to do that.
It allows you to get correctly structured groups, transform nodes and shape nodes in Maya.
It’s really useful for export multiple curves or objects as one alembic file with the “Maya like” hierarchy:

  • Create a connectivity node and switch to Primitive type (you can use the default class attribute name). Now you have a number for each connected primitive.
  • Create a primitive wrangle node and use a simple code to define the Maya like hierarchy:
    s@path = 'wireGRP/wireGEO' + itoa(i@class) + '/wireGEOShape' + itoa(i@class) ;
    Now you have a path attribute for each connected primitive. You can check that in the Geometry Spreadsheet.
  • Use a ROP Alembic Output node to export the abc file.
    Turn on the Build Hierarchy From Attribute (path) option!

The first part will be the name of the group (in this case wireGRP), after the first “/” you have the name of the transform node (aka name of the object – for example wireGEO5), after the second “/” you have the name of the shape node (for example: wireGEOShape5).
This is the default naming pattern in Maya.

Of course you can modify this however you like it, just remember:
in Maya you can’t start a name with special characters or numbers and every name should be different at the same hierarchy level (in practice: at all hierarchy level).

Cheers, D

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.