Currently I am playing around with AnimationTree.
I have a state machine inside the AnimationTree, and in the state machine there is a state which is a AnimationNodeBlendTree.
Inside that AnimationNodeBlendTree, I have a blend 2 node which I want to set the blend amount through script.
So the setting is:
blend 2 node < state, which is a AnimationNodeBlendTree < state machine < AnimationTree
I have tried the following to set the blend amount but both failed:
$AnimationTree["parameters/state_machine_name/playback/state_name/blend2/blend_amount"] = 0.5
$AnimationTree["parameters/state_machine_name/playback/state_name/blend_2/blend_amount"] = 0.5
$AnimationTree["parameters/state_machine_name/state_name/blend2/blend_amount"] = 0.5
$AnimationTree["parameters/state_machine_name/state_name/blend_2/blend_amount"] = 0.5
state_machine_name is the state machine name and
state_name is the state name.
So how can I set the blend amount?