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 tellBecause 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement