Itoo Software Forum

Author Topic: MaxScript: GetVersion() of FP or Railclone?  (Read 1486 times)

SnipeyX

  • Newbie
  • *
  • Posts: 28
MaxScript: GetVersion() of FP or Railclone?
« 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!


Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2447
Re: MaxScript: GetVersion() of FP or Railclone?
« Reply #1 on: December 29, 2016, 10:19:44 AM »
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,

SnipeyX

  • Newbie
  • *
  • Posts: 28
Re: MaxScript: GetVersion() of FP or Railclone?
« Reply #2 on: December 29, 2016, 06:31:41 PM »
Sounds good, thanks!