Hello,
With Unreal Engine and Python I need to change the preview mesh of an Animation Sequence, how can I do that?

The var is named PreviewMesh
in the preview scene settings but I don’t found any way to access and change this var with the Python API.
-
The var preview_pose_asset
in unreal.AnimSequence
is alway None with a note “// todo:: note that this doesn’t retarget right now”
-
Maybe it preview_mesh
in unreal.PersonaPreviewSceneDescription
but so how access to unreal.PersonaPreviewSceneDescription from my anim sequence?
Thanks for your help!
I think the description in the docs for preview_pose_asset
is copy pasted incorrectly. It’s a pose asset and not a skeletal mesh, and with pose assets they’re linked to anim sequences. The preview skeletal mesh associated is unique to each persona window as you can even open multiple anim sequence persona windows by holding down the shift key and double clicking an anim sequence. Each instance would have its own preview mesh. Multiple skeletal meshes can share a skeleton so it’s not a 1 to 1 relatioship either. I think it would require C++ to get access to more lower level classes to access it across multiple context menus. The Get Preview Mesh Component
takes in a personal tool menu context, but I think you’ll need C++ to establish the input object.