Page 1 of 1

How to get Tracker Scaling value for use in an Expression?

PostPosted: Thu Apr 27, 2017 9:46 pm
by Adelson Munhoz
I am using a tracker with:

> Match Move option
> FG only
> Position / Rotation / Scaling: all checked

How can I get the Scaling parameter value for use in a Simple Expression?

I cannot use the pickwhipping technique because this parameter does not appear in the Tools tab.

I have manually tried without success:
Tracker1.Scale
Tracker1.Scale.X
Tracker1.Size
Tracker1.Size.X

Another question: Is there a script that can list all the parameters of a node ?

Thanks for any help.

Re: How to get Tracker Scaling value for use in an Expressio

PostPosted: Thu Apr 27, 2017 9:59 pm
by Sander de Regt
I don't have a direct answer for you since I've never needed this before. Why do you need it to be in a simple expression? When I need to access this info I usually use a modifier instead of an expression.
Can you please elaborate?

Re: How to get Tracker Scaling value for use in an Expressio

PostPosted: Thu Apr 27, 2017 10:07 pm
by Adelson Munhoz
Sure.

I want to use the Tracker Size parameter, but I want to reduce it by a factor.

For example: Let's say that the resulting Tracker Size is 1.4. I want to divide it by 2, resulting in 0.7 and use this calculated value in a Transform node.

Re: How to get Tracker Scaling value for use in an Expressio

PostPosted: Thu Apr 27, 2017 10:12 pm
by Sander de Regt
In cases like these I'd modify the size of your transform with RC-->modify with-->calculation and connect the first operand to you tracker's steady size, set the operator to divide and the second operator to 2.

Re: How to get Tracker Scaling value for use in an Expressio

PostPosted: Thu Apr 27, 2017 10:21 pm
by Bryan Ray
You want UnsteadySize

To find all the Outputs of a tool, select it and use this code in the Console:

Code: Select all
for _, out in ipairs(comp.ActiveTool:GetOutputList()) do print(out:GetAttrs().OUTS_ID .. ": " .. out:GetAttrs().OUTS_Name) end


Likewise, if you want all the possible Inputs:

Code: Select all
for _, inp in ipairs(comp.ActiveTool:GetInputList()) do print(inp:GetAttrs().INPS_ID .. ": " .. inp:GetAttrs().INPS_Name) end


Reference: https://www.steakunderwater.com/VFXPedi ... ing_Inputs

Re: How to get Tracker Scaling value for use in an Expressio

PostPosted: Thu Apr 27, 2017 10:38 pm
by Adelson Munhoz
Thanks Sander. It works!

In my case the desired parameter was Unsteady Size but it was easy to select it in the Modifier.

Thanks Bryan. Tracker.UnsteadySize also did the trick. Thanks for the scipt too!