sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Get last image export settings?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 76 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      duke
      last edited by

      Sketchup seems to persist image export settings, such as width/height, file format, antialias. Is there a way I can grab these settings?

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        The registry:
        HKEY_CURRENT_USER\Software\Google\SketchUp8\Preferences
        ExportPref.png

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • D Offline
          duke
          last edited by

          Brilliant! Thanks

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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's eval() without Type checking. When a error occurs it seems the method's rescue block just returns nil.

            So you'll need to use the WIN32OLE class ("win32ole.so" file,) and the Windows Scripting Host interface to read registry values.
            See: [Plugin Library] Win32API and Win32OLE so files

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement