https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
Happy Holidays
Thanks Willem. Like it very much. Could not resist and added some new link-snow-flakes made with PD-wb
If you want to turn it, here is the script I used for Roland's tree. You need a directory /tmp/images where all images of the animated gif will be stored.
Code: Select all
# create a Part container of all stuff to be turned, it will be referenced by its name "Part"
from PySide import QtCore
#?? activeView = FreeCADGui.activeDocument().activeView()
doc = App.ActiveDocument
baum = doc.getObjectsByLabel("Part")[0]
baseBaum = baum.Placement.Base
fileCount = 0;
def turn(angle):
global fileCount
fileCount += 1
baum.Placement=App.Placement(baseBaum, App.Rotation(App.Vector(0,0,1),angle), App.Vector(0,0,0))
Gui.updateGui()
fileName = '/tmp/images/xmas%03d_%03d.bmp' % (fileCount,abs(angle))
Gui.activeDocument().activeView().saveImage(fileName,485,505,'Current')
angle=0
end = -360
timer = QtCore.QTimer()
# timeout = 25
# step = 1
# -----------
# timeout = 50
# step = 2
# -----------
timeout = 75
step = 3
# -----------
def update():
global angle
angle -= step
turn(angle)
if angle <= end:
# reset all to the origin and stop
# angle = 0
# turn(angle)
timer.stop()
doc.recompute()
timer.timeout.connect(update)
timer.start(timeout)
My door seems harder to open, my stairs seem more wobbly, my driveway surface is less even, my driveway seems longer and more twisted, I made it to my mail box, checked it was empty walked back to the house sat down looked at my wife and realised she looks even more deliciously curvy than normal, and the room seems to sway a little ... but my throat is disinfected!