Eyeon:Script/Reference/Applications/eyeonServer/Classes/Library/AddItem
From VFXPedia
Contents |
library : AddItem()
Arguments
AddItem(data)
- data(required, table)
The table of data that will be used to create the item. See below for available options.
Returns
A UUID string that can be used to control the object.
Remarks
OpenLibrary allows eyeonScript to make a connection to an associated library object. From this object, one could theoretically create folders and bin items. The associate functions are documented below.
Type |
Options |
Common |
Type (string): The bin item type. Name (string): The name of the bin item. Parent (string): The UUID of the parent. |
Root (cannot be added except through CreateLibrary) |
Folder (boolean) : This indicates whether the root of the library is a folder -- always true. FusionInit (boolean): Whether Fusion initialized the creation of this root. |
BinClip |
FileName (string): A valid path to a clip. |
BinComp |
FileName (string): A valid path to a comp. |
BinFile |
FileName (string): A valid path to an arbitrary file. |
BinFolder |
Folder (boolean) : This indicates whether the object is a folder -- always true for folder bin items. |
BinTool |
ID (string): The Reg ID for the tool to be added. |
Requirements
- eyeonScript 5.01
- Fusion 5.01
Examples
es = eyeonServer("localhost") lib = es:OpenLibrary("Library", "Kane", "Rosebud") root = lib:GetID() folderRoot = lib:AddItem({Parent = root, Type = "BinFolder", Name = "FootageTest", Folder = true}) lib:AddItem({ Parent = folderRoot, Type = "BinClip", FileName = "c:\\test.0000.cin", Name = eyeon.parseFilename("c:\\test.0000.cin").CleanName}) lib:AddItem({ Parent = folderRoot, Type = "BinFile", FileName = "c:\\pagefile.sys", Name = "PAGEFILE"})
Tips for AddItem (edit)
EyeonTips:Script/Reference/Applications/eyeonServer/Classes/Library/AddItem