Eyeon:Script/Reference/Applications/Fusion/Classes/Input/ConnectTo

From VFXPedia

Jump to: navigation, search

Contents

Input : ConnectTo()

Arguments

ConnectTo(OutputObject)

  • OutputValue (required, output)

OutputValue is equal to an output of some sort that will be connected to the input that the function is run on. Will disconnect the input from any outputs if connected to a nil value.

Returns

This function does not return a value.

Remarks

The ConnectTo function is used to connect an input to an output. An example of this would be utilizing the function to connect the Level of a polygon to a BezierSpline.

Note that this functions similarly to right clicking on a property, selecting Connect To, and selecting the property you wish to connect the input to. In that respect, if eyeonScript tries to connect unlike values (a path's value to a polygon's level, for instance) it will not connect the values. Such an action will yield no error message.

Also note that ConnectTo is not needed to connect input and output values together. You can also set an output / input equal to an input / output. The ConnectTo function is sometimes a better option, as it makes code more explicit and readable.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

-- Creates two merges, animates the Blend property of the first,

-- and connects the blend value of the second to the same bezier

-- spline (an output) that the first is connected to.

Merge1=Merge({})

Merge2=Merge({})


Merge1.Blend = BezierSpline({})

Merge2.Blend:ConnectTo(Merge1.Blend:GetConnectedOutput())


Tips for ConnectTo (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/Input/ConnectTo