Hi Folks.
I’ve looked at everything, sequencer_key_examples.py and sequencer_examples.py, and API code, and even tried Chat gpt. It is out of my understanding.
Unreal 5, use in the editor - Python Editor Script Plugin
I have the code below, how do I get the visibility_section to start off?
In my understanding, I did the following, the actor starts with a section that will be disabled and the next section enabled.
It worked partially because I have to manually check and disable Visible.
binding = level_sequence.add_possessable(actor)
# Add a track visibility for the actor
visibility_track = binding.add_track(unreal.MovieSceneVisibilityTrack)
visibility_track.set_property_name_and_path('bHidden', 'bHidden')
visibility_section = visibility_track.add_section()
visibility_section.set_start_frame_seconds(0)
visibility_section.set_end_frame_seconds((i * range) + start)
# Add a section for the sprite to be visible
visibility_section = visibility_track.add_section()
visibility_section.set_start_frame_seconds((i * interval)+Start)
visibility_section.set_end_frame_seconds(length_in_seconds * Finish)
Thank you very much!