Use the hooks in the tokens_hook.py file to add custom tokens to the multiple Add Token drop-downs available throughout the application. The tokens_hook.py file is located in /opt/Autodesk/<flame version>/python, but it can be moved to any supported location scanned for Python hooks like /opt/Autodesk/shared/python.
Two hooks are available:
| Function | Description |
|---|---|
get_hook_token_list |
Hook called to get the list of available tokens for a context. |
resolve_hook_token |
Hook called to resolve a token to its actual value. |
For more information about defining Custom Tokens using Python hooks, see Tokens Hooks.
Use one of the four Application tokens to return the name of the application or the version being used.
| Select: | To add: | To return: |
|---|---|---|
| Application | <application> |
flame, flameassist, flare, or burn |
| Application Version | <application version> |
2027.1.pr243 |
| Application Major Version | <application major version> |
2027 |
| Application Full Version | <application full version> |
2027.1.0.173 |