Feature Request: Assembly4 extend animation modes

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
jruiz
Posts: 480
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Feature Request: Assembly4 extend animation modes

Post by jruiz »

Good morning.
In Assembly4 WB -> Animate Assembly.
Could it be very hard to implement the following animation modes:
  1. Cyclic animation,
  2. Forward and reverse,
  3. Step by step (in both senses) and
  4. Pause/play combination
?
I have uploaded many FreeCAD video tutorials to my YouTube channel
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Feature Request: Assembly4 extend animation modes

Post by Zolko »

jruiz wrote: Sun Mar 08, 2020 2:45 pm
  1. Cyclic animation,
  2. Forward and reverse,
  3. Step by step (in both senses) and
  4. Pause/play combination
1) and 2) exist already: all you need to do is add an intermediate variable that you calculate with a sinus or cosinus (suppose "t" the variable that you move between 0 and 720, and "d" the variable that controls some position: d = A * sin(t) + B and any variations around this theme. If the WB were to implement a cyclic movement we wouldn't do it differently )

3) and 4) ... they could be done, yes, good ideas, thank-you
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Feature Request: Assembly4 extend animation modes

Post by Zolko »

jruiz wrote: Sun Mar 08, 2020 2:45 pm 4) Pause/play combination
for that, I'd change the "Stop" button to "Pause", and when hitting "Run" it continues where it had left. With 2 additional buttons for step-by-step ... yes, that's cool
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
jruiz
Posts: 480
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Re: Feature Request: Assembly4 extend animation modes

Post by jruiz »

Zolko wrote: Sun Mar 08, 2020 4:57 pm
jruiz wrote: Sun Mar 08, 2020 2:45 pm
  1. Cyclic animation,
  2. Forward and reverse,
  3. Step by step (in both senses) and
  4. Pause/play combination
1) and 2) exist already: all you need to do is add an intermediate variable that you calculate with a sinus or cosinus (suppose "t" the variable that you move between 0 and 720, and "d" the variable that controls some position: d = A * sin(t) + B and any variations around this theme. If the WB were to implement a cyclic movement we wouldn't do it differently )
I agree with you. I fact I have done some animations in this way. Just was wondering if it could be done explicitly by varying the involved variables directly.
I have uploaded many FreeCAD video tutorials to my YouTube channel
User avatar
jruiz
Posts: 480
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Re: Feature Request: Assembly4 extend animation modes

Post by jruiz »

Zolko wrote: Sun Mar 08, 2020 5:57 pm
jruiz wrote: Sun Mar 08, 2020 2:45 pm 4) Pause/play combination
for that, I'd change the "Stop" button to "Pause", and when hitting "Run" it continues where it had left. With 2 additional buttons for step-by-step ... yes, that's cool
Another 2 items that could be added to the list would be the following:

5. A variable monitor (...displaying the actual value of the varying variable.)
6. A check box for choosing if the varying variable should be restored (or not) to its initial value after animation ends.


What do u think about that?
I have uploaded many FreeCAD video tutorials to my YouTube channel
Post Reply