Eyeon:Script/Reference/Libraries/eyeon/dump
From VFXPedia
Contents |
Usage
eyeon.dump(table t)
- t (table, required)
The table of values dump() will print out..
Returns
The dump function does not return a value.
Remarks
The dump function iterates recursively through the table provided as its argument, printing each of the values in the table. If some of the entries in the table are also tables, the values from that table are also printed, and so on. This function is normally used to troubleshoot or debug scripts.
When using the dump function in the Console view of Fusion, or from the Interactive prompt at the command line (eyeonscript.exe -i) you can use ==table as a shortcut : e.g. ==fusion:GetAttrs() would print out all the entries returned by GetAttrs(). The == shortcut does not work from within scripts, only at interactive scripting prompts.
Requirements
- eyeonScript 5.0
Examples
x = {} x.Name = "Fusion" x.Ver = 5.0 x.Stuff = {"Test", 0, y = 0.5, x = 0.6} dump(x) -- prints the following -- table: 00A42FB8 -- Ver = 5 -- Name = Fusion -- Stuff = table: 01F38328 -- 1 = Test -- 2 = 0 -- y = 0.5 -- x = 0.6 dump(Loader1:GetAttrs()) -- prints attributes for Loader1, and for all clips loaded by the loader