Hi Jim,
Thanks loads for your tip!!
I'll go try it out straight away
I'll be back...
Hi Jim,
Thanks loads for your tip!!
I'll go try it out straight away
I'll be back...
Hi !
I'm currently working in a research department in a architect-engineer group in Paris, and we regularly need to export shade views of the studied buildings at three specific dates and three specific times for those dates.
I've written this little test code for exporting shade views, but i don't seem to manage changing the shade time....
would like some help if anyone has a hint
thanks !
Lydia
require 'sketchup.rb'
#=============================================================================
def exportShadeView
model = Sketchup.active_model
view = model.active_view
title = model.title
Sketchup.active_model.shadow_info["ShadowTime"]="Thu Mar 21 14:00:00 Paris, Madrid 2002"
if (value)
UI.messagebox value
else
UI.messagebox "Failure"
end
filename = title + "_21mars_10h.jpg"
status = view.write_image filename, 5000, 4000
if (status)
UI.messagebox status
else
UI.messagebox "Failure"
end
end
#=============================================================================
#=============================================================================
if( not $shadeview_loaded )
shadeview_menu = UI.menu("File")
shadeview_menu.add_item("Shadow Export") { exportShadeView }
$shadeview_loaded = true
end