0
$\begingroup$

I've created a simple motion track from video in the movie clip editor. I can see the motion data in the graph view:

enter image description here

I've also created an empty from the motion data and when I hit playback I can see the empty moving in the 3D view.

The problem is that when I add the empty as an object to the Node Animation area and wire it to any other node, I never see the X/Y values change over time during playback. Here's my current node layout:

enter image description here

(EDIT: I'm using the text node to view the value of the X coordinate in real time during the animation playback).

I know that the motion data can be used in the Compositor layout using the Track Position Node, but I want to use the tracking data to animate an object in the 3d space and am assuming the Animation Node editor would be more appropriate.

Is there any way of getting the empty's location data into the Animation Node editor or barring that, passing the Track Position output from the Compositor Node editor into the Animation Node editor?

UPTDATE: As recommended by SergeL, here's is how to retrieve the tracker empty location data using Animation Nodes:

enter image description here

$\endgroup$
4
  • $\begingroup$ Try to use Matrix input + Matrix Decompose instead of Transforms Input $\endgroup$
    – Serge L
    Jan 12, 2019 at 15:32
  • $\begingroup$ Use the Word matrix to retrieve the location. $\endgroup$ Jan 12, 2019 at 15:33
  • 1
    $\begingroup$ An easier way to investigate the value of a certain data is to user a viewer node, see documentation. $\endgroup$
    – Omar Emara
    Jan 12, 2019 at 15:35
  • $\begingroup$ @SergeL - That worked! I've updated my question with the details. $\endgroup$ Jan 13, 2019 at 8:58

1 Answer 1

1
$\begingroup$

According to the documentation:

Matrices from Matrix Input node are more reliable than transforms from Transforms Input node because of their different forms and because they are always up to date even during physics simulations or when constraints are used.

For instance, if one uses a Copy Location constraint to adjust the object's location, the transforms will report the original location while the matrix inputs will report the final location.

Node Tree

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .