Animation framework

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

thank you all for the discussion
I have done some coding and I'm satisfied with the results
https://www.youtube.com/watch?v=un9SaY8 ... kakjRclz2w
http://youtu.be/gdZiGZnbxIE

I can use lines and angles to control movements and rotations

the code is simple to use

Code: Select all

def test6():
	m=Manager()
	

	f=Mover("Schraube","Anlieferer",10,100)
	m.register(f)

	f=Mover("Schraube","Senker",130,200)
	m.register(f)

	s=Rotator('Schraube')
	s.setRot('Dreher')
	s.setIntervall(150,200)
	m.register(s)

	f=Photographer("/tmp/AA_")
	f.setIntervall(0,450)
	m.register(f)

	tr=Tranquillizer(0.01)
	m.register(tr)
	m.run(300)

	m.finalize(0)
Now I'm looking for the gui to increase usability.

Its for me an execise to learn how to build a workbench
bn_016.png
bn_016.png (13.32 KiB) Viewed 2574 times
I have learned a lot last days and had fun too. :)
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Re: Animation framework

Post by arcol »

normandc wrote:It's a pity that the stuff in the Robot workbench cannot be reused (can it?)

If you don't know what I'm talking about, switch to the Start Center, and under "Example projects", click on "Load a robot simulation example".

Switch to the Robot workbench, select Robot and Trajectory in the tree, then click on the last icon in the toolbar, labeled "Run a simulation on a trajectory". In the Tasks pane, click on the Play button ( |>) and admire. :)
That is AWESOME! I love it!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

Yes, the Robots modul is powerful.

I have used the rainy sunday to create a Gui for my toolkit
there are still some sharp edges to be softened
but I think it gives me more flexibility

https://www.youtube.com/watch?feature=p ... 9nEO5Ou9yA

http://freecadbuch.de/doku.php?id=blog: ... or_freecad
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

the last action of this day
http://de.wikipedia.org/wiki/Kurbelschwinge

I had done a (simple) modelling in freecad and animation in blender same days ago:
https://www.youtube.com/watch?v=tzrAMSx ... kakjRclz2w

now I can do it all in freecad (stick the pictures together to a film is and will be a non CAD task)
http://youtu.be/gcTg8YzH-jk

the only problem is the shaky cameraman :shock:

the file
Attachments
m05_schwinge.fcstd
(13.4 KiB) Downloaded 37 times
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

here is the example of a 3 piston radial motor
http://youtu.be/yRIW-3W-zYY
there are still some problems with speed and renumbering the vertixes in the sketch.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Animation framework

Post by shoogen »

really nice. But the filler looks a bit counterintuitive. Perhaps you could differentiate the volume and try to the the 1. derivative of the volume constant ;) (or drop frames to keep it that way).
EDIT: stupid me. The area of the top face is proportional to the reciprocate of the speed in z. You could use this area to calculate how much to increment z in the next timestep.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Animation framework

Post by NormandC »

To anyone who is interested in testing microelly2's animation macro, I would like to point out that the link to GitHub in microelly's first post is dead.

Seem like he moved the macro to https://github.com/microelly2/Animation

microelly2, maybe you could edit your first post to fix the link? :)

Cool work! :)
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation framework

Post by microelly2 »

shoogen wrote:But the filler looks a bit counterintuitive. Perhaps you could differentiate the volume and try to the the 1. derivative of the volume constant
This is my first try - the triggering idea was a body scan with constant speed and not to empty a bottle of red wine ;) .
The idea for the next year is to have configurable behaviour like the ipo curve editor on blender and a formular editor for simple functions or a macro caller for complex dependencies.
These all can base on the Draft Module, but I watch the project of peter fabo too:
https://www.youtube.com/channel/UCZpXp2 ... SdL3UnTGAA
Its a promising way to get a 2D control panel witten in python with qt and a way to connect outside hardware arduino.

Here I see also to use the open inventor engine concept. there will not be boredom.

By the way - a documentation of the animation workbench is on my website
http://freecadbuch.de/doku.php?id=Animation%20Wokbench
drei
Posts: 479
Joined: Sun May 11, 2014 7:47 pm
Location: Mexico
Contact:

Re: Animation framework

Post by drei »

Hi microelly,
I have a question regarding licensing: in your Animation.py file the program is listed as LGPL, but the license file states your project is GPL. Could you clarify which one is the "true" license of your code please?
Need help? Feel free to ask, but please read the guidelines first
Post Reply