GetViewInfo
-
GetViewInfo
SU6:
Wie kann ich in SU6 von einer eingestellten bestimmten Sicht folgende Parameter ermitteln:SU6:
How can I get the following parameter:Latitude
Longitude
Hight
Distance
Tilt
Azimuth -
Hello,
Look at the ShadowInfo object:
http://download.sketchup.com/OnlineDoc/gsu6_ruby/Docs/ruby-shadowinfo.html
Some of the values may need calculated from what is available:
Sketchup.active_model.shadow_info.keys ["City", "Country", "Dark", "DayOfYear", "DaylightSavings", "DisplayNorth", "DisplayOnAllFaces", "DisplayOnGroundPlane", "DisplayShadows", "EdgesCastShadows", "Latitude", "Light", "Longitude", "NorthAngle", "ShadowTime", "ShadowTime_time_t", "SunDirection", "SunRise", "SunRise_time_t", "SunSet", "SunSet_time_t", "TZOffset", "UseSunForAllShading"]
latitude = Sketchup.active_model.shadow_info["Latitude"]
-
Thanks, Jim.
set konsolenText to "DayOfYear = Sketchup.active_model.shadow_info[\"DayOfYear\" ]" tell application "SketchUp" activate tell application "System Events" tell process "SketchUp" --stellt im Konsolentextfeld die EinfĆ¼gemarke sicher tell menu bar 1 tell menu bar item "Fenster" tell menu 1 click menu item "Ruby-Konsole" end tell end tell end tell end tell keystroke konsolenText --to "AXTextFiled" of "Ruby-Konsole" keystroke return end tell end tell
Because I start an AppleScript script from FileMaker, I need not to type in ruby console.
With ruby script above I get
162 (when the date of shadow is 06/11)
163 (when the date of shadow is 06/12)But for Longitide, Latitude I got no different values, if I turn or go some steps, but only 10 and 50 (my location).
So my question, how I can set the parameter of my view to get back a view of remember, stays here.
Advertisement