Inline-four engine animation

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: Inline-four engine animation

Post by clintonsam75 »

Thanks a lot, peterl94.

So here is exactly what to do. Step by step.

First create a python file called conrod.py and save it in the macro directory.

Then open crank_simul.fcstd in FreeCAD.

Next, down in the python console, type "from conrod import *" without the quotes.

Finally, type "animation.stop()" without the quotes which will stop the animation.

To start it again, you can just type "animation = Animation()" to start the animation over from the beginning or type "animation.timer.start(50)" to continue the animation from where you stopped it.
Last edited by clintonsam75 on Fri Nov 14, 2014 9:09 am, edited 1 time in total.
peterl94
Veteran
Posts: 1001
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: Inline-four engine animation

Post by peterl94 »

clintonsam75 wrote:After that, start the macro which will start the animation.
Actually, I don't think you would want to do this. The animation will start when you run the import command in the console.
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: Inline-four engine animation

Post by clintonsam75 »

peterl94 wrote:
clintonsam75 wrote:After that, start the macro which will start the animation.
Actually, I don't think you would want to do this. The animation will start when you run the import command in the console.
You're right again. I'll edit that step out.
Post Reply