• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[ruby doc] Undocumented ShadowInfo & Rendering Options

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 514 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    Al Hart
    last edited by Al Hart 6 May 2008, 14:41

    Thanks a lot Jim,

    I still don't see it in the Ruby documentation.

    I didn't think to simply print out all of the rendering and shadow options to see what is not documented.

    For the record here are the shadow info and rendering options - undocumented in bold

    Shadow Info:

    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

    Rendering Options

    BackgroundColor
    BandColor
    ConstructionColor
    DepthQueWidth
    DisplayColorByLayer
    DisplayFog
    DisplayInstanceAxes
    DisplayWatermarks
    DrawDepthQue
    DrawGround
    DrawHidden
    DrawHorizon
    DrawLineEnds
    DrawProfilesOnly
    DrawSilhouettes
    DrawUnderground
    EdgeColorMode
    EdgeDisplayMode
    EdgeType
    ExtendLines
    FaceBackColor
    FaceColorMode
    FaceFrontColor
    FogColor
    FogEndDist
    FogStartDist
    FogUseBkColor
    ForegroundColor
    GroundColor
    GroundTransparency
    HideConstructionGeometry
    HighlightColor
    HorizonColor
    InactiveHidden
    InstanceHidden
    JitterEdges
    LineEndWidth
    LineExtension
    LockedColor
    MaterialTransparency
    ModelTransparency
    RenderMode
    SectionActiveColor
    SectionCutWidth
    SectionDefaultCutColor
    SectionInactiveColor
    ShowViewName
    SilhouetteWidth
    SkyColor
    Texture
    TransparencySort

    Al Hart

    http://wiki.renderplus.com/images/e/ef/Render_plus_colored30x30%29.PNG
    IRender nXt from Render Plus

    1 Reply Last reply Reply Quote 0
    • D Offline
      Didier Bur
      last edited by 6 May 2008, 19:35

      Hi Al,
      Most options in Su are handled by hashes.
      For instance:
      options=Sketchup.active_model.shadow_info
      then:
      options.to_a gives:
      [["City", "Paris"], ["Country", "France"], ["Dark", 20], ["DayOfYear", 172], ["DaylightSavings", false], ["DisplayNorth", false], ["DisplayOnAllFaces", true], ["DisplayOnGroundPlane", true], ["DisplayShadows", false], ["EdgesCastShadows", false], ["Latitude", 48.867], ["Light", 80], ["Longitude", 2.333], ["NorthAngle", 0.0], ["ShadowTime", Fri Jun 21 15:30:00 Paris, Madrid 2002], ["ShadowTime_time_t", 1024666200], ["SunDirection", Vector3d(-0.149675, -0.420103, 0.895048)], ["SunRise", Fri Jun 21 06:53:33 Paris, Madrid 2002], ["SunRise_time_t", 1024635213], ["SunSet", Fri Jun 21 22:51:25 Paris, Madrid 2002], ["SunSet_time_t", 1024692685], ["TZOffset", 1.0], ["UseSunForAllShading", false]]

      options.keys return an array of all the options names and options.values an array of all the values associated with each key.

      All the hashes are contained in: Sketchup.active_model.options
      For example:
      optionsmanager[0].to_a gives:
      [["LengthPrecision", 2], ["LengthFormat", 0], ["LengthUnit", 4], ["LengthSnapEnabled", true], ["LengthSnapLength", 0.393700787401575], ["AnglePrecision", 1], ["AngleSnapEnabled", true], ["SnapAngle", 15.0], ["SuppressUnitsDisplay", false], ["ForceInchDisplay", false]]

      And so on... all sort of things that I found by myself (and with the help of other rubyists) BUT that Google apparently don't care to document 👎

      DB

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement