Check which plugins are enabled in Preferences->Extensions
-
I am trying to check which plugins are enabled in the Preferences->Extensions menu. The following code seems like it should work to me (it asks for variables that are in the registry, the checked plugins have value 1 and the unchecked ones have value 0) but it doesn't work (at least on Windows with SU 7). Does anyone know if we are blocked from reading/writing to the Extensions preferences? Is there another way to check if another plugin is enabled?
ObjectSpace.each_object(SketchupExtension) do |p|
variable = "#{p.name}"
puts variable
puts Sketchup.read_default("Extensions", variable, nil)
variable = "#{p.name}#{p.version}"
puts variable
puts Sketchup.read_default("Extensions", variable, nil)
endThanks a lot,
Dan -
Sketchup.read_defaultDoes appear to be limited, it won't read any Windows settings, nor SketchUp settings.
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