setVersion() to set the version properties in a plugin

(Rashmi Gupta) #1

How does setVersion() work?

(Frédéric Devernay) #2

I don not see any mention of setVersion in the doc

(Frédéric Devernay) #3

If you are mentioning the setVersion in the plugin Support library: nobody uses this.

(Rashmi Gupta) #4

setVersion() in the openfx library. Why cant we use this? and where can i read more about it? usage etc

(Rashmi Gupta) #5

currently Natron supports plugin Major and minor version like : v1.2. However if i want to display the version as v1.02.03 ? How can i achieve this?

(Frédéric Devernay) #6

you have to use setVersion in YourPlugin::describe(...), the same way the plugin name, label, and grouping are set.

Natron doesn’t use that property, so even if you set it, Natron won’t use that property.

If you really want to make the plugin version visible, add an “About…” push button, and use sendMessage( Message::eMessageMessage, "", "This is version 1.02.03 of my great plugin, (c)2018 Rashmi Gupta" );