Skip to content

Implement managing of UserControls #8

Description

@BigRoy

Custom attributes can be added in Blackmagic Design Fusion on the tool nodes by means of "UserControls".

Without scripting these can be tweaksed with "Edit Controls.." when right clicking on the top icon bar of the tool parameters. In scripting this is an ordered dictionary under tool.UserControls.

For example:

# Set the user controls
# Note: since we're setting the dict value directly any existing user controls will be lost.
tool.UserControls = {
        "myAttribute": {
            "LINKS_Name": "Attribute Name",
            "LINKID_DataType": "Number",
            "INPID_InputControl": "CheckboxControl",
            "INP_Default": 1,
            "INP_Integer": True,
            "ICD_Width": 1.0,
            "CBC_TriState": False,
            "ICS_ControlPage": "Avalon"
    }
}

# Make sure the UI updates
tool.Refresh()

More details WeSuckLess VFXPedia User Controls.

Should work across Fusion 9, 16 and 17.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions