示例#1
0
def cmd_notes(args, context):
    if len(args) != 0:
        return False
    contents = sf.text_edit(sf.data[-1]["info"]["notes"])
    if not contents:
        body = "Error processing tempfile."
        return {"body": body}
    sf.set_info("notes", contents)
    body = "Notes updated."
    return {"body": body}
示例#2
0
def cmd_notes(args, context):
    if len(args) != 0:
        return False
    contents = sf.text_edit(sf.data[-1]["info"]["notes"])
    if not contents:
        body = "Error processing tempfile."
        return {"body": body}
    sf.set_info("notes", contents)
    body = "Notes updated."
    return {"body": body}
示例#3
0
def cmd_text(args, context):
    if len(args) != 0:
        return False
    contents = sf.text_edit(sf.get_scene_by_id(context[2])[2])
    if not contents:
        body = "Error processing tempfile."
        return {"body": body}
    sf.set_scene(context[2], "contents", contents)
    body = "Scene content updated."
    return {"body": body}
示例#4
0
def cmd_text(args, context):
    if len(args) != 0:
        return False
    contents = sf.text_edit(sf.get_scene_by_id(context[2])[2])
    if not contents:
        body = "Error processing tempfile."
        return {"body": body}
    sf.set_scene(context[2], "contents", contents)
    body = "Scene content updated."
    return {"body": body}