EyeonTips:Script/Reference/Applications/Fusion/Classes/Operator

From VFXPedia

Jump to: navigation, search
  • There are more member variables than listed above. All of these are read-only:
    • Instead of using tool:GetAttrs().TOOLS_Name, you can also use tool.Name.
    • tool.ID corresponds to the attribute TOOLS_RegID
    • tool.ParentTool contains the group parent (if the tool is inside a group).
    • tool.Composition points to the composition object that this tool belongs to.
  • tool.UserControls is a (writable) table of custom inputs created by the User Controls script.
  • TileColor, TextColor and so forth expect a table with R, G and B keys. Colors are floating point but can easily be converted from 8bit RGB:
tool.TileColor = {R = 1.0, G = 0.5, B = 128/255}