Hi everyone !
I had some problems with the replacement of published versions files referenced in Maya.
In the Scene Breakdown menu, we just can update to a newer version of the file, but what I'm looking for is to switch between new and old versions.
So with the help of Manne Öhrström, I created a script which can be useful for people who would like to see the switch button in the Scene Breakdown menu.
Here is the switch function in attachement.
As you can see, the script requires the value of a chosen menuItem in an optionMenu.
What it could be interesting is to store the value of the newest versions (example : "v009") using the scan of the hook. We can return this value in the optionMenu, and create older ones with a function, until "v001".
The user just has to choose between versions in the optionMenu, and load it by clicking on a button with command=switch.
switch.py