Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Retrieve the plugin version from within the plugin

Explorer ,
Dec 16, 2014 Dec 16, 2014

Hello guys,

I am trying to get the value of the plugin version from within the plugin but it seems there is no way of accessing it... Do you have any tips?

Thanks a lot!

TOPICS
SDK
690
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 16, 2014 Dec 16, 2014

local Info = require 'Info.lua'

...Info.VERSION...

Translate
LEGEND ,
Dec 16, 2014 Dec 16, 2014

local Info = require 'Info.lua'

...Info.VERSION...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 16, 2014 Dec 16, 2014

I am not sure why but I was looking for a call in the API for that...

But your answer is perfect! Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2014 Dec 29, 2014
LATEST

or:

local info = dofile( LrPathUtils.child( _PLUGIN.path, "Info.lua" ) )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines