A script to replace the stock "version to latest" command that will only version up if the files are sequentially numbered.
Version To Latest
Updated: 22 March 2012
Author: CameronC
Compatible Nuke versions: 6.3 or later
Compatibility: Mac, Windows
Designed to replace the stock "Version to Latest" function that will only update if the files are sequentially numbered.
This Script will search the directory of your shot sequences and then look for ones with the same read name. It then substitutes the highest version it finds for the one in your read node. Designed to work on sequences only.
use this line in your menu.py to replace the stock one.
1 |
nuke.menu( 'Nuke' ).addCommand( 'Edit/Node/Filename/Version to Latest (Reads only)' , versionToLatest.versionToLatest)
|
~Cameron