Example #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}
Example #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}
Example #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}
Example #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}