I want to modify branchstarbones in a AnimBlendPerBone slot, to reduce animtree complexity. I can change it, but there are no effect, is like the Animtree needs to be updated.
But I don't know how to do. I tried with mesh.forceupdate and mesh.forceskelupdate, but nothing.
This is the example code to change values:
Any idea?
But I don't know how to do. I tried with mesh.forceupdate and mesh.forceskelupdate, but nothing.
This is the example code to change values:
Code:
exec function test () { local AnimNode N; N = Mesh.FindAnimNode('Slot1'); `log("node1"@N); `log("node1"@string(AnimNodeBlendPerBone(N).BranchStartBoneName[0])); AnimNodeBlendPerBone(N).BranchStartBoneName[0] = 'Root'; //Mesh.ForceUpdate(false); //Mesh.ForceSkelUpdate(); }
Comment