When I use Python with Unreal 5.5 and attempt to get the local transforms of a Control Rig in Sequencer, I can only access the world transforms. Attempting to access the local transforms throws an error stating that the wrong rig type is being used, “LogControlRig: Error: Control Rig Wrong Type”. Does anyone know why this is or what the solution is?
import unreal
level_sequence = unreal.LevelSequenceEditorBlueprintLibrary.get_current_level_sequence()
rig_proxies = unreal.ControlRigSequencerLibrary.get_control_rigs(level_sequence)
rig_proxy = rig_proxies[0]
rig = rig_proxy.control_rig
controller = "global_ctrl"
frame_num = unreal.FrameNumber(0)
# Works
ctrl_transform_world = unreal.ControlRigSequencerLibrary.get_control_rig_world_transform(level_sequence, rig, controller, frame_num)
# Works, but throws an error
ctrl_transform_local = unreal.ControlRigSequencerLibrary.get_local_control_rig_transform(level_sequence, rig, controller, frame_num)
# Works
unreal.ControlRigSequencerLibrary.set_control_rig_world_transform(level_sequence, rig, controller, frame_num, ctrl_transform_world )
# Doesn't work and throws an error
unreal.ControlRigSequencerLibrary.set_local_control_rig_transform(level_sequence, rig, controller, frame_num, ctrl_transform_local )