|
1 | | -The Sequencer API (Work in progress) |
2 | | ------------------------------------- |
| 1 | +The Sequencer API |
| 2 | +----------------- |
3 | 3 |
|
4 | | -Credits go to Ron Fischer for having explained me the sequencer api. |
| 4 | +The sequencer API development has been sponsored by Matthew Whelan (http://www.mattwhelan.com/) |
5 | 5 |
|
6 | | -NOTE: seq_obj in the following docs is a reference to a ULevelSequence object. |
| 6 | +Credits should go to Ron Fischer too, for having explained me the sequencer api ;) |
7 | 7 |
|
8 | | -NOTE2: GUID's are always managed as python strings |
| 8 | +Creating a Sequencer Asset |
| 9 | +-------------------------- |
9 | 10 |
|
10 | | -NOTE3: track_obj in the following docs is a reference to a UMovieSceneTrack object. |
| 11 | +You can create a new 'Level Sequence' asset using the LevelSequencerFactoryNew class: |
11 | 12 |
|
12 | | -```py |
13 | | -seq_obj.sequencer_master_tracks() |
14 | | -``` |
15 | | - |
16 | | -returns a list of the sequencer master tracks |
17 | | - |
18 | | -```py |
19 | | -seq_obj.sequencer_possessables() |
20 | | -``` |
21 | | - |
22 | | -returns the list of possessables mapped to a sequencer. The list is composed by 3-items tuples, first item is the possessable guid, second is the name, third is the reference to the possessable class |
23 | | - |
24 | | - |
25 | | - |
26 | | -```py |
27 | | -seq_obj.sequencer_find_possessable(guid) |
28 | | -``` |
29 | | - |
30 | | -get the UObject given a GUID |
31 | | - |
32 | | -```py |
33 | | -seq_obj.sequencer_possessable_tracks(guid) |
34 | | -``` |
35 | | - |
36 | | -returns the list of tracks mapped to a possessable guid |
37 | | - |
38 | | -```py |
39 | | -track_obj.sequencer_track_sections() |
40 | | -``` |
| 13 | +```python |
| 14 | +from unreal_engine.classes import LevelSequenceFactoryNew |
41 | 15 |
|
42 | | -get the list of sections in a track |
43 | | - |
44 | | -```py |
45 | | -seq_obj.sequencer_sections() |
46 | | -``` |
47 | | - |
48 | | -get the list of all sections in a sequencer |
49 | | - |
50 | | -```py |
51 | | -seq_obj.sequencer_folders() |
| 16 | +factory = LevelSequenceFactoryNew() |
| 17 | +seq = factory.factory_create_new('/Game/MovieMaster') |
52 | 18 | ``` |
53 | | - |
54 | | -get the list of folders in a sequencer |
55 | | - |
56 | | -```py |
57 | | -new_track = seq_obj.sequencer_add_master_track(u_class) |
58 | | -``` |
59 | | - |
60 | | -add a new master track. u_class must be a class child of UMovieSceneTrack, like ue.find_class('MovieSceneAudioTrack') |
61 | | - |
62 | | - |
63 | | -```py |
64 | | -name = track_obj.sequencer_get_display_name() |
65 | | -``` |
66 | | - |
67 | | -(editor only) get the display name of various seqnecer objects (currently only tracks are supported) |
68 | | - |
69 | | -```py |
70 | | -track_obj.sequencer_set_display_name(name) |
71 | | -``` |
72 | | - |
73 | | -(editor only) set the display name of various seqnecer objects (currently only tracks are supported) |
0 commit comments