The aforementioned node actually does the opposite, removing any baked in
transforms and is a part of the Dynamics set.
That said you could pipe the geometry into a DyPassive body, then into a
DySolver and bake the solver. It will create a group, inside will be an axis
with the world-space matrix keyframed. You could cut-paste that axis and delete
the passive body and solver.
Or you could try to bake out the transform with only Nuke, but I've never had
much success in automating it (due to the viewer update issues) nuke.toNode( <>
).knob('geo_select').getGeometry()[ <object index> ].transform().translation()
CC: [email protected]
From: [email protected]
Subject: Re: [Nuke-users] distance between camera and transformed object
Date: Wed, 18 Sep 2013 07:22:28 +0100
To: [email protected]
can't remember which node but Mr Munch (?) geometry tools has a tool that can
read the concatenated position of an object.
apologies if his name is wrong but he mentioned this in a similar ish thread a
while ago.
Howard
On 18 Sep 2013, at 02:45, Michael Garrett <[email protected]> wrote:
Normally I would say you can use the world_matrix knob of the TransformGeo to
get the concatenated position (using cels 3, 7 and 11) but it depends on
whether the geometry itself already has a baked in offset or not - meaning is
it reading in at the origin or not.
If it's not animated and you need that offset value in world space, you could
easily snap an Axis to a vertex of the geometry that you want to be the Camera
focal point, then parent another Axis that represents the TransformGeo and read
off the concatenated transform from the child Axis world_matrix knob. You would
then use the expression Olivier posted to get the distance.
On 17 September 2013 19:41, Gustaf Nilsson <[email protected]> wrote:
Yes, but that is not possible when you have a transformgeo-node connected to
the geometry as there is no way (?) of getting its world coordinates.
On Tue, Sep 17, 2013 at 6:56 PM, Olivier Lavenant <[email protected]>
wrote:
You can use the expression : sqrt[(Xa-Xb)²+(Ya-Yb)²+(Za-Zb)²]
2013/9/17 Gustaf Nilsson <[email protected]>
heya
Is it possible to get the distance between the camera and an object in 3d space
that has an arbitrary number of transforms below it?
Thanks
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users