Camera related George functions¶
Camera related George functions.
TVPCamera(width: int, height: int, field_order: FieldOrder, frame_rate: float, pixel_aspect_ratio: float, anti_aliasing: int = 1)
dataclass
¶
TVPCameraPoint(x: float, y: float, angle: float, scale: float)
dataclass
¶
tv_camera_info_get() -> TVPCamera
¶
Get the information of the camera.
Source code in pytvpaint/george/grg_camera.py
40 41 42 43 44 45 46 47 48 49 50 51 52 | |
tv_camera_info_set(width: int | None = None, height: int | None = None, field_order: FieldOrder | None = None, frame_rate: float | None = None, pixel_aspect_ratio: float | None = None) -> TVPCamera
¶
Set the information of the camera.
Source code in pytvpaint/george/grg_camera.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
tv_camera_enum_points(index: int) -> TVPCameraPoint
¶
Get the position/angle/scale values of the n-th point of the camera path.
Source code in pytvpaint/george/grg_camera.py
76 77 78 79 | |
tv_camera_interpolation(position: float) -> TVPCameraPoint
¶
Get the position/angle/scale values at the given position on the camera path (between 0 and 1).
Source code in pytvpaint/george/grg_camera.py
82 83 84 85 86 87 88 | |
tv_camera_info_frame(frame: int) -> TVPCameraPoint
¶
Get the position/angle/scale values at the given frame.
Source code in pytvpaint/george/grg_camera.py
91 92 93 94 95 96 97 98 | |
tv_camera_insert_point(index: int, x: float, y: float, angle: float, scale: float) -> None
¶
Add a point to the camera path before the given index.
Source code in pytvpaint/george/grg_camera.py
101 102 103 104 105 106 107 108 109 | |
tv_camera_remove_point(index: int) -> None
¶
Remove a point at the given index.
Source code in pytvpaint/george/grg_camera.py
112 113 114 | |
tv_camera_set_point(index: int, x: float, y: float, angle: float, scale: float) -> None
¶
Set position/angle/scale value of a point at the given index and make it current.
Source code in pytvpaint/george/grg_camera.py
117 118 119 120 121 122 123 124 125 | |