Animation Workbench

Show off your FreeCAD projects here!
F_Rosa
Posts: 32
Joined: Thu Feb 18, 2016 10:39 pm

Re: Animation Workbench

Postby F_Rosa » Thu Oct 06, 2016 6:30 pm

Ok, I already had seen this web page and understood each function, but my question is about the settings of the elements (as I said on the Properties window and values). There are obvious cases like setting the number of frames, for example, but there are others that are not so much...

Sorry if I insiste...
Attachments
Captura.PNG
Captura.PNG (17.97 KiB) Viewed 409 times
User avatar
microelly2
Posts: 2445
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation Workbench

Postby microelly2 » Fri Oct 07, 2016 7:26 am

mode Camera: give the camera a fix positon or animate the camera along a path object

if you use "Vector" you can write a fix position into the pos Camera field but you can use expressions too.
If you use the "Path" you have to link the path Camera propertiy to a path object.

the "index Camera" is a value which changes over time and holds the current frame. It is overwriten by the manager.

The "Direction" groups defines in which direction the camera looks.
You can select a vector or then Placement.Base of a (moving) object.
"dir Target" and "dir Vector" are the required data in each case.
None menas that the camera doen not change its initial direction.

"Position" Group defines where the top direction of the camera is. Its still not implemented but may be useful if someone want to animate a
motorcycle driver of a flying airplane.

"zoom" is the scaling of the image.
triplus
Posts: 4993
Joined: Mon Dec 12, 2011 4:45 pm

Re: Animation Workbench

Postby triplus » Tue Apr 18, 2017 6:45 pm

Hi microelly2.

I wanted to instruct the user to use your workbench:

https://forum.freecadweb.org/viewtopic.php?f=22&t=21919

To rotate for example a cylinder once in 60s.

http://freecadbuch.de/doku.php?id=Animation%20Wokbench

Rotator looks like the best option but it doesn't work for me. Could you write a small tutorial on how it should be used for this use case.

Thanks.
User avatar
microelly2
Posts: 2445
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Animation Workbench

Postby microelly2 » Tue Apr 18, 2017 9:13 pm

I have a better node - the Placer - it can do moves and rotations
here is a description in English
https://freecadbuch.de/doku.php?id=anim ... lacer:engl

and here an example
The box rotates on the default axis (0,0,1) in its center (5,5,5) and is moved once to (10,20,30)
I have not an exact time configuration because the movement dependts on the calculation time in FreeCAD, so only a render frame count.
The intervall is 100 ( that can mean 4 s with 25 frames each)


Code: Select all

import Animation
from Animation import *

import Placer

d=App.newDocument("Unbenannt")
b=App.activeDocument().addObject("Part::Box","Box")


r=Placer.createPlacer("BoxPlacer",b)
r.x='10'
r.y='20'
r.z='30'
r.RotCenter=FreeCAD.Vector(5,5,0)

m=createManager()
m.intervall = 100
m.sleeptime = 0.01
m.addObject(r)
m.Proxy.run()
triplus
Posts: 4993
Joined: Mon Dec 12, 2011 4:45 pm

Re: Animation Workbench

Postby triplus » Tue Apr 18, 2017 10:23 pm

Placer worked!

In my opinion each feature having a video or description on how to make it work step-by-step would be cool. As average FreeCAD user just doesn't know on how to make it work. Things like First insert the feature -> Set some feature property to link the feature to a 3D object. Double click on feature to get the animation started... For an average FreeCAD user it's in my opinion really hard to start using the feature without such straightforward and easy to understand documentation being available. And in the end that is a shame isn't it?

And is there some competition i don't know about on who will make the longest toolbar? :D

P.S. Can you confirm Rotator feature works on your side?