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:

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.

Creating globals

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d8c7dc83-ce88-4842-883d-c811e17c74f7/Untitled.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/04ec619d-1a6f-4f47-8642-a5e1f6206065/Untitled.png

You can use the buttons on the top-right side of the panel to edit or remove a global.

Globals in expressions

You can reference a global in a plug expression by using its name.

Example :

myGlobal + 0.5