Feature Request: Assembly4 extend animation modes

Discussion about the development of the Assembly workbench.
User avatar
jruiz
Posts: 220
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Feature Request: Assembly4 extend animation modes

Postby jruiz » Sun Mar 08, 2020 2:45 pm

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 some FreeCAD video tutorials to www.youtube.com/yosoyvenezolano
User avatar
Zolko
Posts: 842
Joined: Mon Dec 17, 2018 10:02 am

Re: Feature Request: Assembly4 extend animation modes

Postby Zolko » 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 )

3) and 4) ... they could be done, yes, good ideas, thank-you
try the Assembly4 workbench for FreCAD v0.19
install with Tools > Addon Manager > Assembly4 — tutorials here and here
User avatar
Zolko
Posts: 842
Joined: Mon Dec 17, 2018 10:02 am

Re: Feature Request: Assembly4 extend animation modes

Postby Zolko » 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
try the Assembly4 workbench for FreCAD v0.19
install with Tools > Addon Manager > Assembly4 — tutorials here and here
User avatar
jruiz
Posts: 220
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Re: Feature Request: Assembly4 extend animation modes

Postby jruiz » Sun Mar 08, 2020 6:24 pm

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 some FreeCAD video tutorials to www.youtube.com/yosoyvenezolano
User avatar
jruiz
Posts: 220
Joined: Tue Oct 28, 2014 1:07 pm
Contact:

Re: Feature Request: Assembly4 extend animation modes

Postby jruiz » Sun Mar 08, 2020 6:32 pm

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 some FreeCAD video tutorials to www.youtube.com/yosoyvenezolano