Jump to: Board index » General » Fusion

How to set tool position in the FlowView from script ?

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

Richard Wulveryck

  • Posts: 10
  • Joined: Fri Feb 17, 2017 7:11 pm

How to set tool position in the FlowView from script ?

PostMon Feb 20, 2017 11:52 am

Hi experienced Fusion Users
I need your help to define an well done created composition

It seams the name of the window is FlowView, accessed by the "Flow tab" from FUSION : correct ?

From command line in the Fusion/Console
From Composition script


For example, let's create two cubes and group them. By default they will be created in the left corner, the second goes under. Let's set the position at (20,50) and (100, 50). Then let's group them, and set position at (50,50).

cube3D1 = Cube3D()
cube3D2 = Cube3D()
cube3D1.View.X = 20 -- pseudo code unknown
cube3D1.View.Y = 50 -- pseudo code unknown
cube3D1.View.X = 100 -- pseudo code unknown
cube3D1.View.Y = 50 -- pseudo code unknown
group12 = Group(cube1, cube2) -- pseudo code unknown
group12.View.X = 50 -- pseudo code unknown
group12.View.Y = 50 -- pseudo code unknown

QUESTION 1 : How to set the position of the tool in the FlowView ?
QUESTION 2 : How to set the position of a group in the FlowView ?
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: How to set tool position in the FlowView from script ?

PostThu Mar 02, 2017 11:33 pm

scripting manual page 33:

Code: Select all
Similar to the selection state the position of the tool on the FlowView is not part of the tool instance
but of the flow.
flow = comp.CurrentFrame.FlowView
==flow:GetPos(Blur1) -- prints the position of Blur1
==flow:SetPos(Blur1, 5, 1) -- sets the position of Blur1 to x = 5 y = 1


or you can already set the position at the creation of the tool:

Code: Select all
new_loader = composition:AddTool("Loader", 100, 100)

Return to Fusion

Who is online

Users browsing this forum: No registered users and 25 guests