Eyeon:Script/Reference/Applications/Fusion/Classes/FlowView/SetPos
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | FlowView
Contents |
FlowView : SetPos
Usage
FlowView:SetPos(object tool, number x, number y)
Arguments
- tool (object, required)
This argument should contain the tool that will be repositioned in the FlowView.
- x, y (number, required)
Numeric values specifying the x and y co-ordinates for the tool in the FlowView.
Returns
This function does not return a value.
Remarks
This function will reposition the tool specified in the first argument, placing at the co-ordinates provided by the second and third arguments.
Example
The example toolscript below would align all selected tools so they had the same x co-ordinate as the tool which the script was executed on.
-- get the position of the selected tool local flow = comp.CurrentFrame.FlowView local x, y = flow:GetPos(tool) for i, t in comp:GetToolList(true) do cur_x, cur_y = flow:GetPos(t) flow:SetPos(t, x, cur_y) end
Tips for SetPos (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/FlowView/SetPos