nicoladanese Posted November 30, 2017 Share Posted November 30, 2017 hey all, I'm trying to cache out some geos using alembic rop output driver to let them go to maya, it works but I'm having issues customizing the name of geos to get them right in maya for instance, in a situation like the image attached, I'd like to have an alembic that contains 3 mesh, each of them with the name "box" "sphere" and "torus" , instead I have a single mesh with the name of the geometry node cheers! Quote Link to comment Share on other sites More sharing options...
Parboil Posted November 30, 2017 Share Posted November 30, 2017 (edited) On the Alembic ROP "Hierarchy" tab check the "build hierarchy from attribute", then specify an attribute you would like to split the geometry by in the "Path Attribute". If you created a string attribute on each of the meshes, i.e name = "box", "sphere", "torus" ... when the alembic is brought into Maya each mesh will be named and combined accordingly. Edited November 30, 2017 by Parboil Quote Link to comment Share on other sites More sharing options...
nicoladanese Posted November 30, 2017 Author Share Posted November 30, 2017 hey Rob, thanks for your help! I got something and that's great, only thing is the meshes in maya have the name in the shape node, not in the transform, but I guess I need to fix it maya rather than houdini... Quote Link to comment Share on other sites More sharing options...
Parboil Posted November 30, 2017 Share Posted November 30, 2017 No problem, you could rename the shape nodes with something like this ... super rough! I haven't come across a solution that doesn't involve writing a script. Let me know if you find anything import pymel.core as pm ls = pm.ls(sl=True) for x in ls: name = pm.listRelatives(x, type = "mesh")[0].name() pm.rename(x, name) Quote Link to comment Share on other sites More sharing options...
nicoladanese Posted December 1, 2017 Author Share Posted December 1, 2017 thanks! weird enough the abc export works perfectly with one frame, but when I cache a sequence maya doesn't seem to like it, it just crashes when I try to open it. Of course if I open the .abc back in houdini is fine... ...awwww maya!! Quote Link to comment Share on other sites More sharing options...
joko.diep Posted February 12, 2019 Share Posted February 12, 2019 Same issue here ... when i export a frame range into a single abc with "build hierarchy from attribute" ticked on, and use the prim-attribute "name", maya crashes everytime at the import. Single frame works perfectly though. Sequence import also works, but only with the hierarchy option off. I'm using Houdini Indie 17 and Maya 2018.5 btw .... sucks if some basic roundtrip doesn't work in the end ... Does anyone experience the same problem and has a workaround for it? Thank you! Quote Link to comment Share on other sites More sharing options...
Keithtron Posted March 3, 2019 Share Posted March 3, 2019 I've always used the 'path' attribute for the 'Build Hierarchy from Attribute' option. Try creating values with slashes ('/') to represent a Maya-style hierarchy. For example, use values like "/fx/box/box_shape" & "/fx/sphere/sphere_shape" & etc. I believe the 2 layers of uniqueness in those hierarchy strings may be important, with 1 part specifying the geom name (transform) and the other naming the shape node. Not positive though, since I almost never need to open up my caches in Maya. Not sure if this would affect your crashes at all, but good luck! :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.