Itoo Software Forum
Forest Pack => Forest Pro (*) => Topic started by: SnipeyX on December 28, 2016, 09:25:23 PM
-
I'd like to be able to get the current installed version of ForestPack and RailClone via Maxscript. Right now I've found a workaround using the Maxscript getFileVersion command to query the .dlo files directly with getFileVersion "$max/plugins/ForestPackPro.dlo"
Wondering if there is a better method native to FP/RC? I see there is a 'saved version' property on an existing object - but in this case I'm wanting to create a scene to render on all the rendernodes that will display the number value of the curently installed plugin - so I can quickly confirm after updating that all nodes are running the same version. I'm using the old Text spline hack of putting a float script controller on a text spline and updating the node's .text property with the proper maxscript. I can do things like maxVersion() and renderers.production to get max & renderer version, since FP and RC are our next to 'most used' plugins was hoping there might be a similar solution for those or if you can think of any limitations/inconsistencies with the getFileVersion method.
Thanks!
-
Hi,
Currently any data from the "About" roll-out aren't accessible by maxscript (like the installed version) and your solution by using getFileVersion("$max/plugins/ForestPackPro.dlo") / getFileVersion("$max/plugins/RailClonePro.dlo") should be working fine for these purposes (the .savedVersion (.savedVersion & .createdVersion in case of RailClone) properties are meant for slightly different tasks).
Best regards,
-
Sounds good, thanks!