# It's possible to update the Animtree?

**URL:** <https://forums.unrealengine.com/t/its-possible-to-update-the-animtree/50022>\
**Category:** UDK Programming and UnrealScript\
**Tags:** unreal-engine\
**Created:** [December 14, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/its-possible-to-update-the-animtree/50022 "2015-12-14T21:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CobaltUDK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cobaltudk/32/1194497_2.png) [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Post date:** [December 14, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/its-possible-to-update-the-animtree/50022/1 "2015-12-14T21:13:05Z")

</div>

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:

```auto

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();
}

```

Any idea?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae7faa3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae7faa3](https://forums.unrealengine.com/u/anonymous_user_cae7faa3)\
**Post date:** [December 14, 2015, 9:20pm UTC](https://forums.unrealengine.com/t/its-possible-to-update-the-animtree/50022/2 "2015-12-14T21:20:08Z")

</div>

I don’t know about that,but would changing the animtree work in your situation?

I do that quite often.

---

<div class="post-metadata">

**Author:** ![CobaltUDK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cobaltudk/32/1194497_2.png) [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Post date:** [December 14, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/its-possible-to-update-the-animtree/50022/3 "2015-12-14T21:31:17Z")

</div>

Having diferent animtrees are a pain when you need to modify something, you need to modify in all…
