viewerMod v1.0
This location is for Registered Users Only.
Perhaps you need to login or register.
5.0, 5.1, 5.2, 6.0, 6.1, 6.2 or later
This viewer modifier enables the user to lock the viewer's buffers.
When in the viewer window, press 's' to bring the viewer's properties up. A new tab called 'buffers' appears. In there you can lock any of the buffers.
I was missing this feature for ages until I decided to implement it myself ...
It works fine for me ... but I'd love to hear from other people about this ... Not everybody does the same things and I would like to make it fully functional for any situation ... so please gimme feedback!!!
.p!
PS: the code is full of comments because this is a work in progress. A cleaner code will be available after getting some feedback ... or maybe sooner!!
PS2: add this into your menu.py. It will create a new tab to replace the viewer's buffers shortcuts. I totally ignore this new tab, I mean that I never make it visible ...
import viewerMod
vm = nuke.toolbar('viewerMod')
vm.addCommand ('zeroBuffer0', "viewerMod.viewerMod(0, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '0', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer1', "viewerMod.viewerMod(1, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '1', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer2', "viewerMod.viewerMod(2, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '2', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer3', "viewerMod.viewerMod(3, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '3', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer4', "viewerMod.viewerMod(4, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '4', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer5', "viewerMod.viewerMod(5, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '5', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer6', "viewerMod.viewerMod(6, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '6', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer7', "viewerMod.viewerMod(7, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '7', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer8', "viewerMod.viewerMod(8, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '8', icon = 'Constant.png', index=1)
vm.addCommand ('zeroBuffer9', "viewerMod.viewerMod(9, nuke.selectedNodes(), nuke.allNodes('Viewer'))", '9', icon = 'Constant.png', index=1)
Comments
Let me know if it does not appear and I'll upload the new code.
enjoy!!
RSS feed for comments to this post