Sunrise Sunset component bakes points

ladybug

#1

Hi guys,
@mostapha

looks like the Sunrise Sunset (0.0.66) component bakes points when you use it…
Change lines 103-105 from:

refPoint = rs.AddPoint(x,y,z)
vector = rs.VectorCreate([0,0,0] , refPoint)
vector = rs.VectorUnitize(vector)

to

#refPoint = rs.AddPoint(x,y,z)
vector = rs.VectorCreate([0,0,0] , [x,y,z])
vector = rs.VectorUnitize(vector)

and we should be good.

/Mathias


#2

Could you share the file where this was happening?
I don’t seem to have the same problem…

V