Get last image export settings?
-
Sketchup seems to persist image export settings, such as width/height, file format, antialias. Is there a way I can grab these settings?
-
The registry:
HKEY_CURRENT_USER\Software\Google\SketchUp8\Preferences

-
Brilliant! Thanks
-
FYI... I have a bug issue logged that
Sketchup::read_default()cannot return DWORD values.Basically the method assumes anything you want to read was written with
Sketchup::write_default(), which inspects objects into evaluatable strings before storing them.So..
Sketchup::read_default()is stupid and always tries to run the stored values back through Ruby'seval()without Type checking. When a error occurs it seems the method'srescueblock just returnsnil.So you'll need to use the
WIN32OLEclass ("win32ole.so" file,) and the Windows Scripting Host interface to read registry values.
See: [Plugin Library] Win32API and Win32OLE so files
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