Eyeon:Script/Reference/Applications/Fusion/Classes/Composition

From VFXPedia

Jump to: navigation, search

Parent Class: Object

Composition.

Contents

Methods:

AbortRenderStops any current rendering
AbortRenderUIAsks the user before aborting the render
AddToolAdds a tool type at a specified position
AskRenderSettingsShow the Render Settings dialog
AskUserPresent a custom dialog to the user, and return selected values
ClearUndoClears the Undo/Redo history
CloseClose the composition
CopyCopy a list of tools to the Clipboard
CopySettingsCopy a list of tools to a settings table
EndUndoEnd an undo event
ExecuteExecutes a script string for this comp (useful remotely)
FindToolFind a tool by name
FindToolByIDFind a tool by ID type
GetCompPathMapReturns a table of all available path maps
GetConsoleHistoryReturns the console history as a table of strings
GetFrameListRetrieves a table of the comp's ChildFrames
GetPrefsRetrieves a table of comp-specific preferences, or a single value
GetPreviewListRetrieves a table of Previews
GetToolListReturns a table of all tools or selected tools
IsLockedReturns true if popups and updates are disabled
IsPlayingReturns true if the comp is being played
IsRenderingReturns true if the comp is busy rendering
LockLock the composition from updating
LoopEnables looping interactive playback
MapPathExpands any Fusion path maps in a filename
PastePastes a tool from the Clipboard or a settings table
PlayStarts interactive playback
RedoRedo one or more changes to the composition
RenderStart a render
ReverseMapPathMaps an ordinary file path back to any Fusion pathmaps
RunScriptRun a script within the composition's script context
SaveSave the composition
SaveAsSave the composition to a filename
SetActiveToolSet the currently active tool
SetPrefsSet a specific preference, or a table of them
StartUndoStart an undo event
StopStops interactive playback
UndoUndo one or more changes to the composition
UnlockUnlock the composition

Members:

ActiveTool[R]Represents the currently active tool on this comp
CurrentFrame[R]Represents the currently active frame for this composition
UpdateMode[RW]Represents the Some/All/None mode
XPos[RW]The X coordinate on the flow of the next added tool
YPos[RW]The Y coordinate on the flow of the next added tool
AutoPos[RW]Enable autoupdating of XPos/YPos when adding tools


Other:


Tips for Composition (edit)

  • The member variable CurrentTime is also available and corresponds to the COMPN_CurrentTime attribute. Don't confuse it with CurrentFrame though since that deals with the GUI where "frames" are the sections of the interface (flow, viewers, tool panel).
  • The Composition object's methods and members are directly available in the console and in comp scripts written in LUA. This means that you can simply type ==CurrentTime or call AddTool("Blur") without the need to prefix the command with comp. Python scripts have to use the full name.
  • Two yet undocumented methods have been added to the Composition class in recent releases. To quote eyeon tech support:
    GetNextKeyTime([number Time [, object Tool]]) and GetPrevKeyTime([number Time [, object Tool]]). Return the next/previous keyframe time from 'Time', on the tool specified by 'Tool'. If no Tool is specified, then the keyframe time on ANY tool will be returned. If time is unspecified, or TIME_UNDEFINED is used, then the first or last keyframe time will be returned.