Download

Adding track to possessable via python api

I am trying to add a track to a possessed actor in the sequencer via python.

To manually do this, I can make the actor possessable by dragging it into the sequencer, then adding the parameter (called visibility) track like so.

image

This is how far I have got so far via python.

#load sequence
ls = unreal.EditorAssetLibrary.load_asset(’/Game/Master/assets/sets/exampleSequence’)
#get possessables
possessables = ls.get_possessables()
#add track to first possessable
possessables[0].add_track(unreal.MovieSceneBoolTrack)

this creates the following

image

I am unsure how to link/bind this to a parameter on the actor (in this case a blueprint with a variable I made called visibility)

Am I on the right track, or is there a better way of getting what I am trying to achieve?