Jump to content
Sign in to follow this  

Find object level transformations

Recommended Posts

It's one of the areas of Houdini where I'm not super confident.

I'm trying to fetch object level transformations of a camera into a null in an asset.

The idea being you hook up a camera and get the transformations from it so it can translate a ready made lightrig.

I was trying to use the optransform function but didnt have much luck.

Can anyone help me out?



Share this post

Link to post
Share on other sites
Posted (edited)

A simple test setup with a box, tube and 2 nulls inside a subnet.

If I just connect one of the nulls to a subnet input, it will become the input objects child and inherit the parent transform.
You can also fetch the transform manually with an expression. I used the NULL_PARENTED  object and opinputpath to fetch the second input object and get the tx channel.

Here's the expression to do that:

ch(opinputpath("../NULL_PARENTED", 0)/tx)





Edited by berglte
uploaded the sample scene

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this