christmas tree

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: christmas tree

Post by sgrogan »

"fight the good fight"
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: christmas tree

Post by paullee »

Merry Christmas 2020 !

Great to see the tree again :D
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: christmas tree

Post by HoWil »

Willem wrote: Thu Dec 20, 2018 6:26 pm Hi, I made another very simple X-mas tree. Everybody best wishes for next year
X-mastree.png
Thanks Willem. Like it very much. Could not resist and added some new link-snow-flakes made with PD-wb :D .
ps.: Did you know that you can use anti-aliasing in preferences-Display to get rid of the pixelated edges (See below)
Attachments
with anti-aliasing
with anti-aliasing
Xmastree.png (554.45 KiB) Viewed 1206 times
X-mastree.FCStd
with some artificial snow made in Austria
(862.35 KiB) Downloaded 38 times
User avatar
Willem
Veteran
Posts: 1852
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: christmas tree

Post by Willem »

In Austria you always have more snow than here in the Netherlands. I wish everybody the best wishes and a good health in 2021
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: christmas tree

Post by chrisb »

HoWil wrote: Tue Dec 22, 2020 4:07 pm Could not resist
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.
Everything that shouls be turned, i.e. here Sweep and Body005 have to be placed inside a Container named "Part".

You may add the snowflakes falling :mrgreen: .

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)
Here is an intermediate state, when I tried to move the Sweep into the Part and lost it halfway in one of the bodies:
Attachments
SnipScreenshot-88fd96.png
SnipScreenshot-88fd96.png (359.97 KiB) Viewed 1102 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
M4x
Veteran
Posts: 1474
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: christmas tree

Post by M4x »

That's somehow pretty nice too :mrgreen:
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: christmas tree

Post by chrisb »

Looks more like a happy new year after desinfecting the throats with some alcohol.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: christmas tree

Post by jmaustpc »

chrisb wrote: Wed Dec 23, 2020 8:21 pm Looks more like a happy new year after desinfecting the throats with some alcohol.
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! :lol:
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: christmas tree

Post by chrisb »

As long as there is only one mailbox it's not too bad :lol: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply