I have a file on disk that represents an animated transform with a 4x4 matrices. What is the best way to drive the transform of an object node in houdini?
My existing experience tells me I can create an expression to put into each of the transform parameters…
filexform(“filename”, $T, “TX”)
Is there a more direct way to do this without cracking the matrix into each component? It seems like there could be a way to drive the “pre-transform” on each object node?
Driving an object transform with 4x4 matrix?
4166 2 1-
- petershinners
- Member
- 4 posts
- Joined: July 2009
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
Take a look at the HOM Cookbook in the help. There is an example of using a custom Python Object operator that reads in transforms from disk.
http://localhost:48626/hom/cookbook/xforms_from_disk/ [localhost]
http://localhost:48626/hom/cookbook/xforms_from_disk/ [localhost]
Graham Thompson, Technical Artist @ Rockstar Games
-
- mstram
- Member
- 77 posts
- Joined: July 2005
- Offline
When trying to load xforms_from_disk.hip into Houdini 11.0.775, I'm getting errors from the ‘xforms_from_disk’ node (see attached pic).
I then tried to install the PythonObjects.otl from D:\Houdini 11.0.775\houdini\help\hom\cookbook\xforms_from_disk and get “Couldn't add library …. check that PythonObjects.otl is valid operator type library.
So I then created a new OTL, and tried pasting in the code from _index.txt
The code comments indicated that part of the code is for the ”Code for Python Object:“ and another part for the ”PythonModule section“
In the OTL editor, I see tabs for ”Code“, ”Scripts“, and ”Extra Files".
What goes where ?
Mike
I then tried to install the PythonObjects.otl from D:\Houdini 11.0.775\houdini\help\hom\cookbook\xforms_from_disk and get “Couldn't add library …. check that PythonObjects.otl is valid operator type library.
So I then created a new OTL, and tried pasting in the code from _index.txt
The code comments indicated that part of the code is for the ”Code for Python Object:“ and another part for the ”PythonModule section“
In the OTL editor, I see tabs for ”Code“, ”Scripts“, and ”Extra Files".
What goes where ?
Mike
-
- Quick Links


