Eyeon:Script/Reference/Applications/Fuse/Classes/ScriptOperator/CloneInput
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | ScriptOperator
Contents |
Summary
The CloneInput method is used to clone and Input that already exists on the tool. The new input is an instance of the original. Any change made to one input affects the other. This is used to display a asingle control in one or more places. For example, look at the Blend input on the Merge tool. Any change made to the Blend input on the Controls tab will also affect the Blend slider found under the common controls tab.
The CloneInput function does not return a value.
Usage
self:CloneInput(object input, string input_to_clone, table table)
- object (variable, required)
- The input to clone.
- input_to_clone (string, required)
- The name of the cloned input.
- table (table, required)
- This must be an empty table. This argument is not currently used.
Example
The following would clone the Blend slider from the common controls tab of a tool and assign it to the variable InBlendClone
self:CloneInput(InBlend, "BlendClone", {})
Default controls inputs
The names of default controls are listed in the SDK inside the Operator.h file.
Input name | Fusion label |
---|---|
InUseObj | Use Object |
InUseMat | Use Material |
InObjID | Object ID |
InMatID | Material ID |
InDoMBlur | Motion Blur |
InMBQuality | Quality |
InMBShutter | Shutter Angle |
InMBCenterBias | Center Bias |
InMBSampleSpread | Sample Spread |
InInvertMask | Apply Mask Inverted |
InMultiplyMask | Multiply by Mask |
InProcessR | Process Red |
InProcessG | Process Green |
InProcessB | Process Blue |
InProcessA | Process Alpha |
InBlend | Blend |
InBlendZero | Process when Blend is 0.0 |
InComments | Comments |
Bitmap mask style inputs
Input name | Fusion label |
---|---|
InMaskCenter | Center |
InMaskChannel | Channel |
InMaskLow | Low |
InMaskHigh | High |
Tips for CloneInput (edit)
- You can use the third argument to rename the cloned control. This code will create a clone of the common blend slider named "Fade":
InFade = self:CloneInput(InBlend, "Fade", {LINKS_Name = "Fade"})