mirHadi Posted July 16, 2019 Share Posted July 16, 2019 Hello I imported a geo into Houdini from Maya. I want to rotate it around its pivot, but the transform node doesn't respect the imported geo's pivot.It sets it to the origin. is there any thing I can do so Houdini uses the original imported pivot for transformation? thank you Quote Link to comment Share on other sites More sharing options...
ameyer Posted July 19, 2019 Share Posted July 19, 2019 What format are you exporting? Because that depends a bit on how you could do it. But you could also just position the object in maya so the pivot sits at the origin. Or if the desired pivot you want to have is the object center you can press "Move Centroid to origin" on the xform sop in Houdini. Quote Link to comment Share on other sites More sharing options...
mirHadi Posted July 19, 2019 Author Share Posted July 19, 2019 (edited) thank you Adrian! the thing is I need Its pivot exactly where It is in Maya, so I can rotate it around. the pictures shows what it looks like in Houdini. (obj and FBX in houdini) Edited July 19, 2019 by mirHadi Quote Link to comment Share on other sites More sharing options...
Sepu Posted July 19, 2019 Share Posted July 19, 2019 Should be able to open the pivot transformation tab in the transform and add $CEX and $CEZ. Quote Link to comment Share on other sites More sharing options...
mirHadi Posted July 19, 2019 Author Share Posted July 19, 2019 (edited) well It works just fine for the pivot of the bounding box. but what about an arbitrary pivot like this: and rotation? Edited July 19, 2019 by mirHadi Quote Link to comment Share on other sites More sharing options...
cudarsjanis Posted July 19, 2019 Share Posted July 19, 2019 just blast the lower polygon and put transform node under it with expressions sepu mentioned. or you can blast that polygon put null at the end with name OUT_whatever(just to keep it organized) and then on transform node that is just under your geo put expression in pivot position centroid("../OUT_whatever", D_X) centroid("../OUT_whatever", D_Y) centroid("../OUT_whatever", D_Z) for XYZ accordingly All done in geo level Quote Link to comment Share on other sites More sharing options...
mirHadi Posted July 19, 2019 Author Share Posted July 19, 2019 (edited) thank you but, It is not what I want. I don't want to move the pivot to centroids of the entire object or any primitives. I need the exact pivot position of the object shown in the picture. Edited July 19, 2019 by mirHadi Quote Link to comment Share on other sites More sharing options...
flcc Posted July 19, 2019 Share Posted July 19, 2019 (edited) Hi I'm not sure about you problem as FBX import usually give the correct pivot. I try it (from an older version of maya), and I get the correct pivot. See the attached file. The pivot of pCube1 is on the top left corner. Normally you should see at the bottom of the geometry transform tab, the pivot offset parameters. These settings are not normally usually visible, they are added when importing FBX. But you can access it or add them from "Edit parameter interface". I also added a box, where I added the rotate offset (but in the transform tab to make it more visible), and move the pivot to the left side. If you want to use these "not centered" pivots at the sop level you have to use several transform node to recreate the transformation sequence. hope this helps Box pivot.zip Edited July 19, 2019 by flcc 1 Quote Link to comment Share on other sites More sharing options...
mirHadi Posted July 20, 2019 Author Share Posted July 20, 2019 Thank you Fred! It helped me a lot. FBX is fine I think. on the other hand .Obj files are not. so I need to import all objects from maya via FBX format to retain its original transformations? Quote Link to comment Share on other sites More sharing options...
flcc Posted July 20, 2019 Share Posted July 20, 2019 As I know obj don't retain original tranformation. FBX, 3ds, Alembic, collada, does, but I don't try all these in houdini, just fbx and Alembic. 1 Quote Link to comment Share on other sites More sharing options...
ameyer Posted July 20, 2019 Share Posted July 20, 2019 Try Alembic then! if you import in Houdini you will have a Alembic Xform Node that should hold all the pivot information you need. 1 Quote Link to comment Share on other sites More sharing options...
mirHadi Posted July 21, 2019 Author Share Posted July 21, 2019 thank you guys. very helpful 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.