[SOLVED]accessing scene transitions
-
In view menu-->Animation-->Settings it is possible to enable/disable scene transistions.
Can this function be accessed by ruby?Thx!
-
Sketchup.active_model.options.keys.each {|key| p key; Sketchup.active_model.options[key].each {|k,v| puts "> #{k} - #{v}"} }This returns all the model options you have access to:
` "PageOptions"
ShowTransition - false
TransitionTime - 2.0
"SlideshowOptions"
LoopSlideshow - true
SlideTime - 1.0
"NamedOptions"
"UnitsOptions"
LengthPrecision - 0
LengthFormat - 0
LengthUnit - 2
LengthSnapEnabled - false
LengthSnapLength - 0.0393700787401575
AnglePrecision - 1
AngleSnapEnabled - true
SnapAngle - 15.0
SuppressUnitsDisplay - false
ForceInchDisplay - false
"PrintOptions"
PrintWidth - 7.0
PrintHeight - 5.0
ComputeSizeFromScale - false
SizeInPrint - 1.0
SizeInModel - 3.225830078125
VectorMode - false
FitToPage - true
NumberOfPages - 1
LineWeight - 0.5
PixelsPerInch - 150.0
SectionSlice - false
ModelExtents - false
PrintQuality - 3
ScaleAdjustment - 1.0
QualityAdjustment - 0.5`So you want:
Sketchup.active_model.options['PageOptions']['TransitionTime'] -
@pout said:
For those interested can be set with:
Sketchup.active_model.options[0][0]='false' or 'true'That is not a reliable way to set the options. Use the string keys. The numeric index differ from version to version.
-
thx again, I edited my text.
-
huuray for ThomThom!
thx!For those interested can be set with:
Sketchup.active_model.options[0][0]='false' or 'true' -
'false'won't work as it'll evaluate totrue.
Onlyfalseandnilevaluate tofalse. -
@pout said:
Sketchup.active_model.options[0][0]='false' or 'true'
And 'true' and 'false' are Strings, and although they may work, the proper values are boolean
trueandfalse.Sketchup.active_model.options["PageOptions"]["ShowTransition"] = true(Fixed options key name from TransitionTime to ShowTransition)
-
Is it a known bug that
Sketchup.active_model.options["SlideshowOptions"]["LoopSlideshow"]
appears to be totally ignored by SketchUp?
I've checked back to SU6 and it is read/writable but the animation still loops if its set to
false
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement