Default animation settings, a 2nd question
-
I'm in search of the three items you set in Model Info/Animation page.
Are these in the API?
-
By using
model.options
- theOptionsManager
andOptionsProvider
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}"} }
-
Many thanks, APIMeister.
-
Any idea why it was done this way? It looks like MSFT deliberately trying to make Windows programming as complicated as possible.
-
? what does MSFT got to do with this?
-
+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
-
@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.
-
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.
-
@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.
Advertisement