Jump to content

Export Spline Groups in Alembic so they Import as Separate Objects


Recommended Posts

Hello,

I have a large group of road splines (generated by the lovely OSM Importer), and I've separated them into primitive groups based on their function (highway, residential, etc).  I'd like to export all the road splines in a single alembic file (or another universal file format) in such a fashion that when it is re-imported (in my case, into C4D) the different splines are separated into separate Alembic spline objects. 

Currently, they import as a single object (even when I try importing them back into Houdini). I've also tried exporting them as point groups, but still they come back merged as a single object.

Since there's thousands of splines as part of the OSM file, I can't simply split them up in C4D post-import & manage them that way.

The only way for sure I know now is to export each spline group as a separate Alembic file (10-12 files total), and bring them into my scene one at a time - but I'd much rather have just one file. 

Demo file for testing: hSpline_Export.hiplc

Demo Scene Node graph pre-export:

Y23SRYD.png

Demo Scene Nodes once they are reimported as Alembic:

jAMEhCp.png

kjv0fKD.png

D0n0rMh.png

 

Any thoughts?

Thanks!

Luke

Edited by LukeLetellier
Link to comment
Share on other sites

On your Alembic ROP, enable Use SOP Path and Build Hierarchy From Attribute. You can make a primitive string attribute called whatever you want (let's say "abcPath" for this example) on your curves, and give each object you want separated a unique path attribute ("/geo/highway/curve1" or whatever). This string attribute will then determine the hierarchy of your exported objects; just set the "Path Attribute" on your ROP to be "abcPath" to match and you're good to go.

Edited by toadstorm
  • Like 1
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...