Skip to content

Scene related George functions

Scene related George functions.

tv_scene_enum_id(position: int) -> int

Get the id of the scene at the given position in the current project.

Raises:

Type Description
pytvpaint.george.exceptions.GeorgeError

if no scene found at the provided position

Source code in pytvpaint/george/grg_scene.py
 9
10
11
12
13
14
15
16
@try_cmd(exception_msg="No scene at provided position")
def tv_scene_enum_id(position: int) -> int:
    """Get the id of the scene at the given position in the current project.

    Raises:
        GeorgeError: if no scene found at the provided position
    """
    return int(send_cmd("tv_SceneEnumId", position, error_values=[GrgErrorValue.NONE]))

tv_scene_current_id() -> int

Get the id of the current scene.

Source code in pytvpaint/george/grg_scene.py
19
20
21
def tv_scene_current_id() -> int:
    """Get the id of the current scene."""
    return int(send_cmd("tv_SceneCurrentId"))

tv_scene_move(scene_id: int, position: int) -> None

Move a scene to another position.

Source code in pytvpaint/george/grg_scene.py
24
25
26
def tv_scene_move(scene_id: int, position: int) -> None:
    """Move a scene to another position."""
    send_cmd("tv_SceneMove", scene_id, position)

tv_scene_new() -> None

Create a new scene (with a new clip) after the current scene.

Source code in pytvpaint/george/grg_scene.py
29
30
31
def tv_scene_new() -> None:
    """Create a new scene (with a new clip) after the current scene."""
    send_cmd("tv_SceneNew")

tv_scene_duplicate(scene_id: int) -> None

Duplicate the given scene.

Source code in pytvpaint/george/grg_scene.py
34
35
36
def tv_scene_duplicate(scene_id: int) -> None:
    """Duplicate the given scene."""
    send_cmd("tv_SceneDuplicate", scene_id)

tv_scene_close(scene_id: int) -> None

Remove the given scene.

Source code in pytvpaint/george/grg_scene.py
39
40
41
def tv_scene_close(scene_id: int) -> None:
    """Remove the given scene."""
    send_cmd("tv_SceneClose", scene_id)