< Previous | Contents | Next >
The attributes table defines all the remaining options needed to define a Fusion tool. There are a wide variety of possible attributes, and not all are required. The following table lists the
most common attributes, and their expected values. A more comprehensive list can be found at FuRegisterClass Attributes.
Name | Description |
REGS_Category | Required. A string value which sets the category a tool will appear in. For example, REGS_Category = "Script" will place the tool in the Scripts category of the tool menu. If the category does not exist, it will be created to hold the tool. Nested Categories can be defined using a \ character as a seperator. For example, REGS_Category = "Script\\ Color" will create a Color category under the Script category of the tool menu. Remember to use \\ instead of \ in a regular string, as \ is considered an escape character unless the [[ ]] raw string delimiters are used. |
REGS_Name | Optional. Only needed if the ViewShader’s displayed name is different to its unique ID. |
FuRegisterClass("GammaVSFuse", CT_ViewLUTPlugin, { -- ID must be unique REGS_Name = "Gamma ViewShader",
REGS_Category = "ViewShaders",
})