hello,
i want use the animation group oder the play frames from the animator
class to play a sequence!

// first
                        // max head my script from 3ds over cinema4d
                        _max1 = new file_3dsmax1({material:new BitmapMaterial
(event.target.content.bitmapData,{smooth:true})});
                        _max2 = new file_3dsmax2({material:new BitmapMaterial
(event.target.content.bitmapData,{smooth:true})});
                        _maxAni = new Animator(_max1,
                                [{vertices:_max1.vertices, prefix:"_max01"},
                                {vertices:_max2.vertices, prefix:"_max02"},
                                {vertices:_max1.vertices, prefix:"_max03"}],
                                {material:mat, y:0, x:0, z:0, bothsides:true},
                                false);
                        this.scene.addChild(_maxAni);
                        _animAnimationSequenceMax = new 
AnimationSequence("_max", true,
true, 5);
                        _maxAni.scale(10);
                        _maxAni.x = _maxAni.x + 500;
                        _maxAni.play(_animAnimationSequenceMax);
// end first


// sequence
                        _mSeq01 = new file_3dsmax1({material:new BitmapMaterial
(event.target.content.bitmapData,{smooth:true})});
                        _mSeq02 = new file_3dsmax2({material:new BitmapMaterial
(event.target.content.bitmapData,{smooth:true})});
                        var _mAnimator:Animator = new Animator(_mSeq01,
                        [{vertices:_mSeq01.vertices, prefix:"_mseqfirst01"},
                        {vertices:_mSeq02.vertices, prefix:"_mseqfirst02"},
                        {vertices:_mSeq01.vertices, prefix:"_mseqfirst03"},
                        {vertices:_mSeq01.vertices, prefix:"_mseqsecound01"},
                        {vertices:_mSeq02.vertices, prefix:"_mseqsecound02"},
                        {vertices:_mSeq01.vertices, prefix:"_mseqsecound03"}],
                        {material:mat, y:0, x:0, z:0, bothsides:true});
                        var _mAniGroup:AnimationGroup = new AnimationGroup
(["_mseqfirst","_mseqsecound"], false);
                        _mAnimator.scale(10);
                        _mAnimator.x = _mAnimator.x + 300;
                        this.scene.addChild(_mAnimator);
                        /*/
// example with play frames
                        
_mAnimator.playFrames(["_mseqfirst","_mseqsecound"],1,true,false);
                        _mAnimator.scale(10);
                        _mAnimator.x = _mAnimator.x + 300;
                        this.scene.addChild(_mAnimator);
                        /*/
// end  sequence

the first part of the code worls perfectly, but it is only one
sequence!
when i want to play two animation sequences, see part of the code
sequence the mesh is shown but the animation not. in both cases
(animationgroup and playframes).
how can i add the playcondition to the animation group like in the
animation sequence... her you can _mAnimator.play
(<animationsequence>) => no animation group is possible...

the tutorial from here show this http://www.closier.nl/blog/?p=71
but when i make this:
_animAnimationSequenceMax = new AnimationSequence("_max", true, true,
5);
_animAnimationSequenceMax = new AnimationSequence("_max", true, true,
0.2);
the secound line overwrite the first state and only the secound
sequence is shown in the model.
thx for help
martin

Reply via email to