Extract contents of Subnet = Explosion?!

   3688   1   1
User Avatar
Member
35 posts
Joined: March 2009
Offline
Here's what I'm trying to do, followed by what actually happens.


I've created a model of a vehicle from different geometries. Some of those geometries are other fbx files that i've imported, and i'm using bits and pieces from each geometry to create a vehicle that looks all fine and dandy.

I'm trying to write each piece of geometry to an .obj file. I use the FILE NODE on each piece, write it to an .obj, then when i start a new scene, import those .obj files, they appear in all different sizes and locations?! I thought to myself, I guess i better go back and clear all those transforms and try again, no luck. I figured i must extract the contents of the individual imported fbx files so they are all on the same level, and then zero their transforms.

How do i tell Houdini, "Take all the geometry you see in the viewport, create an .obj file out of each so that if somebody were to import them back into a new scene, the geometries would be their same sizes, and not a tire being 1 unit big and the windshield scaled 5000 times bigger and located off in the distance?

Is there a way to not only have each geometry retain its size but position as well so if i were to give these .obj files to somebody, they could just import each, one by one, and the vehicle would take form in their viewport, without them having to move any geometry around?

Thanks in advance for letting me know!
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Have a look at the freeze transform tool python code.

You need to move the Object transforms and apply a Transform SOP before writing your geometry to disk.
There's at least one school like the old school!
  • Quick Links