Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-23 Thread Joerg Bruemmer
renaming all the "layers" from clip to version up to track item seems to be a painful task :/ > Joerg Bruemmer hat am 24. Oktober 2016 um 12:01 > geschrieben: > > > I guess I have to setName on the containing BinItem as well (sometimes > this layering freaks me out :P) > > > > Jo

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-23 Thread Joerg Bruemmer
I guess I have to setName on the containing BinItem as well (sometimes this layering freaks me out :P) > Joerg Bruemmer hat am 24. Oktober 2016 um 11:48 > geschrieben: > > > I tested your script Ant and it works well. I am trying to do the same for > Clips, as they are lacking renaming as

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-23 Thread Joerg Bruemmer
I tested your script Ant and it works well. I am trying to do the same for Clips, as they are lacking renaming as well. :/ It looks like it works some how. The clip will still have the same old name in bin view etc, but when double clicking it, so it get's its own viewer the viewer will have the "n

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-20 Thread Joerg Bruemmer
Thanks Ant. Will look into it and report back > Antony Nasce hat am 21. Oktober 2016 um 02:27 > geschrieben: > > Hi Joerg, > > Did a quick check on the setName thing - it doesn't exist sadly (as Frank > mentioned) and is already bugged I believe. > > The only way to rename a Bin c

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-20 Thread Antony Nasce
Hi Joerg, Did a quick check on the setName thing - it doesn't exist sadly (as Frank mentioned) and is already bugged I believe. The only way to rename a Bin currently is to remove it, copying the items, and re-adding them in place! (hacky I know!) Anyway, here is a Gist

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-19 Thread Joerg Bruemmer
from PySide import QtGui instead of from PySide.QtGui import * does the trick. Not sure why I had the second one in ... > Joerg Bruemmer hat am 20. Oktober 2016 um 17:19 > geschrieben: > > > actually it is in the StartupUI folder. And even copy/pasting your code > from below in does not wor

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-19 Thread Joerg Bruemmer
actually it is in the StartupUI folder. And even copy/pasting your code from below in does not work (but it does in the ui) > Frank Rueter|OHUfx hat am 20. Oktober 2016 um 16:54 > geschrieben: > > How are you organising your startup folder? > And what does the file look like inside of i

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-19 Thread Frank Rueter|OHUfx
How are you organising your startup folder? And what does the file look like inside of it? On 10/20/2016 04:26 PM, Joerg Bruemmer wrote: and this seems to be a case again, where it works in script editor but not from Startup folder :( Frank Rueter|OHUfx hat am 19. Oktober 2016 um 18:51 ge

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-19 Thread Joerg Bruemmer
and this seems to be a case again, where it works in script editor but not from Startup folder :( > Frank Rueter|OHUfx hat am 19. Oktober 2016 um 18:51 > geschrieben: > > oops. > The second to last line should obviously be: > myMenuInstance = MyMenuWidget('My Menu') > > > On

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-19 Thread Joerg Bruemmer
thanks Frank! That does exactly what I was after > Frank Rueter|OHUfx hat am 19. Oktober 2016 um 18:51 > geschrieben: > > oops. > The second to last line should obviously be: > myMenuInstance = MyMenuWidget('My Menu') > > > On 19/10/16 6:47 PM, Frank Rueter|OHUfx wrote: > >

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-18 Thread Frank Rueter|OHUfx
oops. The second to last line should obviously be: myMenuInstance = MyMenuWidget('My Menu') On 19/10/16 6:47 PM, Frank Rueter|OHUfx wrote: For the menu you can do something like this (basicallly combine standard QT flow with hiero's registerInterest() logic: import hiero from PySide import Qt

Re: [Nuke-python] studio renaming / add sub menu on right click event

2016-10-18 Thread Frank Rueter|OHUfx
For the menu you can do something like this (basicallly combine standard QT flow with hiero's registerInterest() logic: import hiero from PySide import QtGui class MyMenuWidget(QtGui.QMenu): def __init__(self, title, parent=None): QtGui.QMenu.__init__(self, title, parent) te