Support - Forum aa

« Back to Support
Pre-Release 2.0 » where is clearAnimations in v 2.0

» where is clearAnimations in v 2.0

Posted on 01.31.2012 by VM, Duc
hello. i can't using Pivot3DUtils.clearAnimations as V1.
what's function for replace animations (clearAnimations ) was appendAnimation ??
|
Share this
 
Reply By Nehmad, Ariel 02.01.2012
Hi Duc, we need to add this method again, but at the moment, try to use something like this:

model.forEach( removeAnimations )

private function removeAnimations( p:Pivot3D ):void
{
    if ( p.frames ) p.frames = null;

    if ( p is Mesh3D && Mesh3D(p).modifier is SkinModifier )
    {
SkinModifier(Mesh3D(p).modifier).root.forEach( removeAnimations );
    }

}
Reply By VM, Duc 02.01.2012
thanks Ariel! it works !!!