2 Replies Latest reply on Jan 14, 2011 2:50 PM by areohbee

    How to get to plugin version

    Peter Hulst

      As in the sample plugins, I've defined my plugin version in the Info.lua file as follows:

       

      VERSION = { major=0, minor=3, revision=0 },

       

      this works fine and the plugin version is displayed in the Status section of the Plugin Manager, but how can I access this value from elsewhere in my code? I'm trying to develop a 'check for updates' mechanism but can't do much unless I can get to the current version.

      I've tried accessing VERSION.major and VERSION.minor of course, but they appear to be undefined in my other Lua scripts.

       

      Does anyone know how to access this plugin version number? I'd hate to have to define it in multiple places. LrApplication only provides version info for Lightroom itself, and it isn't defined in LrPlugin either.

       

      thanks

      peter