You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: Line wrap long lines of text for a display (#1140)
* Line wrap long lines of text for a display
* Auto wraps lines of text in the docstrings for the schema docs. Lines
are wrapped to 100 characters.
* Update doc files
* Fix incorrect documentation
* Update src/py-opentimelineio/opentimelineio/console/autogen_serialized_datamodel.py
* Fix lint errors
Signed-off-by: Thomas Wilshaw <thomaswilshaw@gmail.com>
Copy file name to clipboardExpand all lines: docs/tutorials/otio-serialized-schema.md
+34-15Lines changed: 34 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ Adapters convert between OTIO and other formats.
44
44
to OTIO. You should not need to extend this class to create new adapters
45
45
for OTIO.
46
46
47
-
For more information: https://opentimelineio.readthedocs.io/en/latest/tutorials/write-an-adapter.html. # noqa
47
+
For more information: https://opentimelineio.readthedocs.io/en/latest/tutorials/write-an-
48
+
adapter.html. # noqa
48
49
49
50
```
50
51
@@ -63,7 +64,8 @@ parameters:
63
64
64
65
```
65
66
66
-
An object that can be composed within a :class:`~Composition` (such as :class:`~Track` or :class:`.Stack`).
67
+
An object that can be composed within a :class:`~Composition` (such as :class:`~Track` or
68
+
:class:`.Stack`).
67
69
68
70
```
69
71
@@ -392,13 +394,21 @@ parameters:
392
394
393
395
```
394
396
395
-
An ImageSequenceReference refers to a numbered series of single-frame image files. Each file can be referred to by a URL generated by the :class:`~ImageSequenceReference`.
397
+
An ImageSequenceReference refers to a numbered series of single-frame image files. Each file can be
398
+
referred to by a URL generated by the :class:`~ImageSequenceReference`.
396
399
397
-
Image sequences can have URLs with discontinuous frame numbers, for instance if you've only rendered every other frame in a sequence, your frame numbers may be 1, 3, 5, etc. This is configured using the ``frame_step`` attribute. In this case, the 0th image in the sequence is frame 1 and the 1st image in the sequence is frame 3. Because of this there are two numbering concepts in the image sequence, the image number and the frame number.
400
+
Image sequences can have URLs with discontinuous frame numbers, for instance if you've only rendered
401
+
every other frame in a sequence, your frame numbers may be 1, 3, 5, etc. This is configured using
402
+
the ``frame_step`` attribute. In this case, the 0th image in the sequence is frame 1 and the 1st
403
+
image in the sequence is frame 3. Because of this there are two numbering concepts in the image
404
+
sequence, the image number and the frame number.
398
405
399
-
Frame numbers are the integer numbers used in the frame file name. Image numbers are the 0-index based numbers of the frames available in the reference. Frame numbers can be discontinuous, image numbers will always be zero to the total count of frames minus 1.
406
+
Frame numbers are the integer numbers used in the frame file name. Image numbers are the 0-index
407
+
based numbers of the frames available in the reference. Frame numbers can be discontinuous, image
408
+
numbers will always be zero to the total count of frames minus 1.
400
409
401
-
An example for 24fps media with a sample provided each frame numbered 1-1000 with a path ``/show/sequence/shot/sample_image_sequence.%04d.exr`` might be
410
+
An example for 24fps media with a sample provided each frame numbered 1-1000 with a path
411
+
``/show/sequence/shot/sample_image_sequence.%04d.exr`` might be
402
412
403
413
.. code-block:: json
404
414
@@ -446,13 +456,15 @@ The same duration sequence but with only every 2nd frame available in the sequen
446
456
"frame_zero_padding": 4,
447
457
}
448
458
449
-
A list of all the frame URLs in the sequence can be generated, regardless of frame step, with the following list comprehension
459
+
A list of all the frame URLs in the sequence can be generated, regardless of frame step, with the
460
+
following list comprehension
450
461
451
462
.. code-block:: python
452
463
453
464
[ref.target_url_for_image_number(i) for i in range(ref.number_of_images_in_sequence())]
454
465
455
-
Negative ``start_frame`` is also handled. The above example with a ``start_frame`` of ``-1`` would yield the first three target urls as:
466
+
Negative ``start_frame`` is also handled. The above example with a ``start_frame`` of ``-1`` would
0 commit comments