sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Model Time of Day - Does Anybody Know of a Script or Plugin?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 167 Views 3 Watching
    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.
    • F Offline
      fcborik
      last edited by

      Hello,

      My name is Frank, and although relatively new to the sketchup community, I have taken a keen interest in dynamic components. One thing I'm trying to design is a clock that will show the time based on the time of day used by the model for the shadow settings. I actually tried to "reverse engineer" a solution using SUNANGLE, SUNELEVATION and LAT (which with a bit of knowledge of speherical geometry and celestial navigation, one can derive the time of day). Alas, these sketchup functions do not update automatically when you change the model time of day. So I figured if I had to go in and get (or make) a script to take care of this automatic update problem, I may as well go after the data I want directly -- model time of day.

      So, if anybody knows of (a) an existing plug-in or script that has, or could be adapated to make, the functionality of retrieving model time of day and making it available as a "custom" sketchup function for use in DCs, or (b) point me in the right direction, I'll head down that path.

      Thanks!

      Frank Borik

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Hi Frank,

        There are a couple examples on the forum of adding custom functions to DC. Search for "atan"

        Here's one for example:

        http://sketchucation.com/forums/viewtopic.php?f=180&t=37083&hilit=dynamic+atan#p327231

        Hi

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          IF you can, access the ShadowInfo hash directly rather than changing EVERYONE's DynamicComponent class.

          See: ShadowInfo

          P.S.: It would be nice if possible, to append a custom DC function, in a singleton manner, to ONLY the specific DC instance in question, rather than modify EVRYONE's set of DC functions. (But I'm not sure it can be done, the way the DCs are currently coded.)

          I'm not here much anymore.

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

          Advertisement