20tab / UnrealEnginePython

Embed Python in Unreal Engine 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi, does anyone know how to add Attach Track to Track?

cundesi opened this issue · comments

Hi, does anyone know how to add Attach Track to Track?
image

https://docs.unrealengine.com/en-US/API/Runtime/MovieSceneTracks/Sections/UMovieScene3DAttachSection/index.html

The C ++ documentation has this function, but I'm not sure how to use it.

image

I have created MovieScene3DAttachTrack for Track, but I don't know what to do next

attach_node = seq_asset.sequencer_add_track(MovieScene3DAttachTrack, node_guid)
attach_sequence = attach_node.sequencer_track_add_section()

I have exported all the properties, and I decided the biggest possibility is this
image

But how can I create MovieSceneObjectBindingID and reset it?

Does anyone have any ideas? Thank you all

        attach_sequence.AttachSocketName = 'Move_Joint'
        attach_sequence.ConstraintBindingID = MovieSceneObjectBindingID(
            Guid=ue.string_to_guid(anim_movie_guid), Space=EMovieSceneObjectBindingSpace.Local
        )
        seq_asset.sequencer_changed(True)