Jump to: Board index » General » Fusion

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

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

Adelson Munhoz

  • Posts: 273
  • Joined: Thu Mar 05, 2015 5:44 pm

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

PostThu Apr 27, 2017 9:46 pm

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.
Online

Sander de Regt

  • Posts: 3588
  • Joined: Thu Nov 13, 2014 10:09 pm

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

PostThu Apr 27, 2017 9:59 pm

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?
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Adelson Munhoz

  • Posts: 273
  • Joined: Thu Mar 05, 2015 5:44 pm

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

PostThu Apr 27, 2017 10:07 pm

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.
Online

Sander de Regt

  • Posts: 3588
  • Joined: Thu Nov 13, 2014 10:09 pm

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

PostThu Apr 27, 2017 10:12 pm

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.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Bryan Ray

  • Posts: 2491
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

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

PostThu Apr 27, 2017 10:21 pm

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
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline
User avatar

Adelson Munhoz

  • Posts: 273
  • Joined: Thu Mar 05, 2015 5:44 pm

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

PostThu Apr 27, 2017 10:38 pm

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!

Return to Fusion

Who is online

Users browsing this forum: No registered users and 68 guests