[MotionBuilder2024] May I ask how to select Source through script?

I search API. GetExternalSolver() kind of like. But still can’t find a right way.

Actually I want to bake control rig by script like this.
character.PlotAnimation(FBCharacterPlotWhere.kFBCharacterPlotOnControlRig, plot_options)

And I can’t find api to set a right source.

I’ve looked thru doc and tried this solution:

lCharactersInScene = FBSystem().Scene.Characters
char1 = lCharactersInScene[0]
char2 = lCharactersInScene[2]


print(f"START: {char1.InputCharacter.Name}")
char1.InputCharacter = char2

char1.Active = True
char1.InputType = FBCharacterInputType.kFBCharacterInputCharacter

print(f"STOP: {char1.InputCharacter.Name}")

I hope that will help

That’s it. I also found it later. Thx.