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
Copy file name to clipboardExpand all lines: docs/tutorials/otio-serialized-schema.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -665,6 +665,7 @@ dissolve or wipe.
665
665
```
666
666
667
667
parameters:
668
+
-*enabled*: If true, a Transition contributes to compositions. For example, when a transition is ``enabled=false`` the transition is ignored and the adjacent clips are cut together with no transition.
668
669
-*in_offset*: Amount of the previous clip this transition overlaps, exclusive.
Copy file name to clipboardExpand all lines: src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -721,19 +721,22 @@ An object that can be composed within a :class:`~Composition` (such as :class:`~
721
721
std::string const& transition_type,
722
722
RationalTime in_offset,
723
723
RationalTime out_offset,
724
-
py::object metadata) {
724
+
py::object metadata,
725
+
py::bool_ enabled) {
725
726
returnnewTransition(
726
727
name,
727
728
transition_type,
728
729
in_offset,
729
730
out_offset,
730
-
py_to_any_dictionary(metadata));
731
+
py_to_any_dictionary(metadata),
732
+
enabled);
731
733
}),
732
734
py::arg_v("name"_a = std::string()),
733
735
"transition_type"_a = std::string(),
734
736
"in_offset"_a = RationalTime(),
735
737
"out_offset"_a = RationalTime(),
736
-
py::arg_v("metadata"_a = py::none()))
738
+
py::arg_v("metadata"_a = py::none()),
739
+
"enabled"_a = true)
737
740
.def_property(
738
741
"transition_type",
739
742
&Transition::transition_type,
@@ -749,6 +752,11 @@ An object that can be composed within a :class:`~Composition` (such as :class:`~
749
752
&Transition::out_offset,
750
753
&Transition::set_out_offset,
751
754
"Amount of the next clip this transition overlaps, exclusive.")
755
+
.def_property(
756
+
"enabled",
757
+
&Transition::enabled,
758
+
&Transition::set_enabled,
759
+
"If true, a Transition contributes to compositions. For example, when a transition is ``enabled=false`` the transition is ignored and the adjacent clips are cut together with no transition.")
0 commit comments