Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement managing of UserControls #8

Open
BigRoy opened this issue Feb 11, 2021 · 0 comments
Open

Implement managing of UserControls #8

BigRoy opened this issue Feb 11, 2021 · 0 comments

Comments

@BigRoy
Copy link
Member

BigRoy commented Feb 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant