File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,6 @@ For detailed installation instructions and notes on how to run the included view
91
91
Example Usage
92
92
-------------
93
93
94
- Python:
95
-
96
- ``` python
97
- import opentimelineio as otio
98
-
99
- timeline = otio.adapters.read_from_file(" foo.aaf" )
100
- for clip in timeline.clip_if():
101
- print (clip.name, clip.duration())
102
- ```
103
-
104
94
C++:
105
95
106
96
``` c++
111
101
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
112
102
113
103
void
114
- example ()
104
+ main ()
115
105
{
116
106
otio::ErrorStatus err;
117
107
otio::SerializableObject::Retainer<otio::Timeline> tl(
@@ -131,6 +121,16 @@ example()
131
121
}
132
122
```
133
123
124
+ Python:
125
+
126
+ ```python
127
+ import opentimelineio as otio
128
+
129
+ timeline = otio.adapters.read_from_file("foo.aaf")
130
+ for clip in timeline.clip_if():
131
+ print(clip.name, clip.duration())
132
+ ```
133
+
134
134
There are more code examples here: https://github.com/AcademySoftwareFoundation/OpenTimelineIO/tree/main/examples
135
135
136
136
Also, looking through the unit tests is a great way to see what OTIO can do:
You can’t perform that action at this time.
0 commit comments