projectHook.py

projectChanged

Called every time the project is changed in the application. This includes the project selection on launch.

def projectChanged(projectName):
   pass
projectName
String. Name of the loaded project.

projectChangedDict

Called every time the project is changed in the application. This includes the project selection on launch. Use projectChangedDict instead of projectChanged when you require the name of the linked Shotgun project name.

def projectChangedDict(info):
   pass

info: Dictionary. Modifiable. Information about the loaded Flame project and linked Shotgun project.

appInitialized

Called when the application is done loading (from to the Start screen to the actual tab-based UI).

def appInitialized( projectName ):
   pass
projectName
String. Name of the loaded project.

projectSaved

Called whenever a project save is performed by the application. Can be an auto-save, or a user-initiated one.

def projectSaved( projectName, saveTime, isAutoSave ):
   pass
projectName
String. Name of the project saved. This is the project currently open in the UI.
saveTime
Float. Time it took to save the project (in seconds).
isAutoSave
Boolean. True if the save was automatically initiated. False if the user initiated it.