Globals are variables that you can use in plug expressions within nodes.
They are declared in Flair using the Globals panel Menu→View→Globals
and are defined (set) **in the host application (i.e., Maya).
Supported global values are:
int
)float
)vec2
, vec3
, or vec4
)enum
).When globals are declared in Flair, the global values will automatically be available in the host application in the flairGlobals node. These globals can be set and keyed in the host application for each frame and are automatically updated within Flair.
You can add (declare) a global in Flair by clicking on the plus button in the Globals panel (Menu→View→Globals
). This will open the Global Editor dialog **were you can configure the global variable.
The Global Editor interface will change depending on what type of global is being edited. For enum
globals, the first field you indicate will be set as the default field.
After declaring a global, a panel describing the global is added to the Globals panel in Flair.
You can use the buttons on the top-right side of the panel to edit or remove a global.
You can reference a global in a plug expression by using its name.
Example :
myGlobal + 0.5