示例#1
0
def _on_load_post(*args):
    # Detect new file or opening an existing file
    if bpy.data.filepath:
        # Likely this was an open operation since it has a filepath
        api.emit("open", args)
    else:
        api.emit("new", args)
示例#2
0
文件: pipeline.py 项目: ddesmond/core
def on_file_event_callback(event):
    if event == hou.hipFileEventType.AfterLoad:
        api.emit("open", [event])
    elif event == hou.hipFileEventType.AfterSave:
        api.emit("save", [event])
    elif event == hou.hipFileEventType.BeforeSave:
        api.emit("before_save", [event])
    elif event == hou.hipFileEventType.AfterClear:
        api.emit("new", [event])
示例#3
0
def _on_save_post(*args):
    api.emit("save", args)
示例#4
0
def _on_save_pre(*args):
    api.emit("before_save", args)
示例#5
0
def _on_scene_save(*args):
    api.emit("save", *[])
示例#6
0
def _on_scene_new(*args):
    api.emit("new", *[])
示例#7
0
def _on_scene_open(*args):
    api.emit("open", *[])