How to use script import .fbx and set each node positions

   415   0   0
User Avatar
Member
1 posts
Joined: Oct. 2019
Offline
Hi guys,

I was trying to use Houdini to render the project from CAD. There’s no problem for manual process, but the project is often updated, so I am looking for a way to automate it. I have an ideas, but don’t know how to implement it for I am very new to Houdini. Maybe a script? Here's my idea:

1. Import a FBX file (exported from CAD) into scene and position it with some rotation in some axis.
2. Apply the shader to each object as the JSON file defines
3. Set the key frame

{
  "object1": {
    "shader": "shader1"
    "trans": {direction_vector, displacement, frameStart, frameEnd}
  },
  "object2": {
    "shader": "shader2"
    "trans": {direction_vector, displacement, frameStart, frameEnd}
  },
...
}

I'll appreciate your help.
Edited by blackgun - Nov. 8, 2019 15:51:49
  • Quick Links