⚠️ Important | Please update Libfredo to v15.1a for bugfixes associated to SketchUp 2025 and below
Download
Ruby access to global delay_time and transition_time
-
I would like to read from a Ruby script the global value of the
delay_time
andtransition_time
found in the scene manager window, but that does not seem to be possible. The methodsPage.delay_time
andPage.transition_time
only allow access to delay and transition times for each page that can be access independently and reports a value of-1
to refer to the global value. -
TIG, thank you lots, that worked!!!
I can't tell you how exhaustively I've searched the API, SketchUcation and Google with no luck.
-
<span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">options</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"SlideshowOptions"</span><span class="syntaxkeyword">][</span><span class="syntaxstring">"SlideTime"</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">options</span><span class="syntaxkeyword">[</span><span class="syntaxstring">"PageOptions"</span><span class="syntaxkeyword">][</span><span class="syntaxstring">"TransitionTime"</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span>
???
Advertisement