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

    Default animation settings, a 2nd question

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 4 Posters 309 Views 4 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.
    • M Offline
      MartinRinehart
      last edited by MartinRinehart

      I'm in search of the three items you set in Model Info/Animation page.

      Are these in the API?

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        By using model.options - the OptionsManager and OptionsProvider class.

        This snippet will list out all options:

        Sketchup.active_model.options.keys.each {|key| p key; Sketchup.active_model.options[key].each {|k,v| puts "> #{k} - #{v}"} }
        

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • M Offline
          MartinRinehart
          last edited by

          Many thanks, APIMeister.

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            Any idea why it was done this way? It looks like MSFT deliberately trying to make Windows programming as complicated as possible.

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              ? what does MSFT got to do with this?

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                +1 Thom - Martin you lose me (and my interest) every time you rant about 30 year old grudges. Just ask a question with relevant info only and leave MSFT (whatever that is) out of it, pretty please?

                OK, so where else would it put it? (I'm not suggesting there is no better place, I just can't think of one) It is a global setting for the entire model. You can also adjust the animation time between each scene separately. That is a scene (page) attribute. If it's time is set to nil, then it uses the defaul time. But change it to something else, and it will use it. But that is a scene by scene setting.

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • chrisglasierC Offline
                  chrisglasier
                  last edited by

                  @chris fullmer said:

                  +1 Thom - Martin you lose me (and my interest) every time you rant about 30 year old grudges. Just ask a question with relevant info only and leave MSFT (whatever that is) out of it, pretty please?

                  Try seriously working through a small part of Uncle Holly's tutorial, it's full of that kind of stuff. Intended to impress (e.g. MSFT is Microsoft's Nasdaq ref), actually it quickly becomes irritating beyond words. Purged of such "style" I believe Martin may have something useful to say.

                  With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MartinRinehart
                    last edited by

                    Microsoft (MSFT) deliberately made Windows programming as complex as possible, as was suspected by all who tried it (I'm one) and was later confirmed by internal documents ferreted out during the antitrust trial. It would be extraordinarily unlike Google to do any such thing. So you ask, "Why?"

                    I can think of many simpler ways to do this. There are about 40 options. A single hash and documentation that enumerated and explained 40 keys would work. An array accessed by named constants options[TransitionTime] would work. Did I overlook some deep thinking that underlies the chosen design?

                    Regardless, Appendix O of my tutorial now credits and thanks ThomThom, lists the names of the OptionsProvider objects and lists each provider's hash keys. It also has a few words on how to use the OptionManager and OptionProvider classes.

                    Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      @martinrinehart said:

                      Microsoft (MSFT) deliberately made Windows programming as complex as possible, as was suspected by all who tried it (I'm one) and was later confirmed by internal documents ferreted out during the antitrust trial. It would be extraordinarily unlike Google to do any such thing. So you ask, "Why?"

                      This is not something MS controls. It's what Google (or @Last) did when they implemented this. I do not know why they chose to group it though.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      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