EyeonTips:Script/Reference/Applications/Fusion/Classes/Fusion

From VFXPedia

< EyeonTips:Script
Revision as of 19:17, 26 June 2012 by Tilt (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Additional Functions

Help("Fusion") lists a few more functions:

LoadPrefs([string filename] [, string masterprefs])
Reloads all global preferences from the specified file and (optionally) an overriding master prefs file.
GetArgs()
Returns Fusion's command line arguments as a table.
DumpOpenCLDeviceInfo()
Dumps OpenCL device info
DumpGraphicsHardwareInfo()
Dumps OpenGL Objects
DumpCgObjects()
Dumps Cg Objects
DumpGLObjects()
OpenGL Objects

Managers

Fusion has several "managers" that deal with hotkeys or custom menu items. They can be reached via fusion.HotkeyManager or fusion.MenuManager. A list of available functions can be printed using Help("HotkeyManager") or Help("MenuManager"). The useful one is the LoadHotkeys() or LoadMenus() function which allows you to reload the menus or hotkeys definitions after you have made changes to them. This way you don't have to restart Fusion.