-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add a new segment to an existing animation #1361
Comments
Is it your intent that these play at the same time? |
Hello,
No, i want the second one play after. Idea ?
Le 9 juil. 2017 17:04, "Donovan Buck" <notifications@github.com> a écrit :
… Is it your intent that these play at the same time?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1361 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4KoytZePOxpsmUyX5dlsS7ZSc6tuSMks5sMOwMgaJpZM4OSBKS>
.
|
I do think you've found a bug. While I track that down, I have a tip for making this work and be a little less code too...
You can group any collection of Servos any way you like so creating a femurs group for an animation like this where you're just moving all the femurs makes sense. Servos can be in any number of groups. |
Ok thank you, it is working. But I really don't understand why
animation.enqueue() don't add a segment after the existing one :-/
Le 9 juil. 2017 17:44, "Donovan Buck" <notifications@github.com> a écrit :
… I do think you've found a bug. While I track that down, I have a tip for
making this work and be a little less code too...
s.femurs = new five.Servos([s.r1f, s.r2f]); // I'm guessing these are femurs
m.tap=function(tapleg){
anim.enqueue({
target:s.femurs,
duration:600,
fps:25,
cuePoints:[0, 0.25, 0.5, 0.75, 1],
keyFrames:[
[null,{degrees: 50,easing:easeInOut},{degrees: 90,easing:easeInOut}, null, null],
[null, null, null,{degrees: 50,easing:easeInOut},{degrees: 90,easing:easeInOut}]
]
});
}
You can group any collection of Servos any way you like so creating a
femurs group for an animation like this where you're just moving all the
femurs makes sense. Servos can be in any number of groups.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1361 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4KoytSumhPgAU5DnKfHw7KICBlaonWks5sMPVOgaJpZM4OSBKS>
.
|
It's a bug. |
OK, for information, I use "PCA9685" controller for servo |
Cool. Just FYI, another user has had some problems with sending multiple, concurrent commands to their PCA9685. It could turn out to be an issue for you too #1340 |
We need to check and see if there is a segment already running before call next() here |
Hello,
I don't understand how to enqueue segments of animation. When I put a new segment with animation.enqueue(), then the entire animation is replaced by the new segment.
Can you help me please ?
Here is my code, only the leg of the second segment is moving :
The text was updated successfully, but these errors were encountered: