Thanks Ant. Will look into it and report back
> Antony Nasce <antonyna...@gmail.com> 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 currently is to remove it, copying the items,
> and re-adding them in place! (hacky I know!)
>
> Anyway, here is a Gist
> https://gist.github.com/antiero/0afa26559ffec85bc7d25663a3376fcd#file-bin_setname-py
> attempt at fixing that up for you.
>
> http://tinyurl.com/z2yh5e2
>
> If renaming Bins is vital to your workflow, I'd recommend asking The
> Foundry Support team nicely (and say: "Ant says it annoys him" :) to bump the
> priority of the bug so that there's a proper supported fix with proper undo
> support... (note the problems encountered with undo in my code.. use it with
> caution! ;)
>
> Cheers,
> Ant
>
> On 20 October 2016 at 05:40, Joerg Bruemmer <j.bruem...@lostgraphics.de
> mailto:j.bruem...@lostgraphics.de > wrote:
>
> > >
> > from PySide import QtGui instead of from PySide.QtGui import * does
> > the trick. Not sure why I had the second one in ...
> >
> > > > > Joerg Bruemmer <j.bruem...@lostgraphics.de
> > > > > mailto:j.bruem...@lostgraphics.de > 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 work (but it does in the ui)
> > >
> > >
> > > > > > > Frank Rueter|OHUfx <fr...@ohufx.com
> > > > > > > mailto:fr...@ohufx.com > 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 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
> > > > > > > > > > > <fr...@ohufx.com>
> > > > > > > > > > > mailto:fr...@ohufx.com 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:
> > > > > >
> > > > > > > > > > > > > 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)
> > > > > > > testAction =
> > > > > > > QtGui.QAction('test', self)
> > > > > > > self.addAction(testAction)
> > > > > > >
> > > > > > > def eventHandler(self, event):
> > > > > > > # this enables the menu to be
> > > > > > > registered as a default context menu item
> > > > > > > event.menu.addMenu(self)
> > > > > > >
> > > > > > >
> > > > > > > myMenuInstance = OhuMenuWidget('My
> > > > > > > Menu')
> > > > > > >
> > > > > > >
> > > > > > > hiero.core.events.registerInterest('kShowContextMenu',
> > > > > > > myMenuInstance.eventHandler)
> > > > > > >
> > > > > > >
> > > > > > > As for renaming bin items, that method
> > > > > > > seems to be missing. Not sure what the work around is.
> > > > > > >
> > > > > > >
> > > > > > > On 19/10/16 11:35 AM, Joerg Bruemmer
> > > > > > > wrote:
> > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > hey gang,
> > > > > > > >
> > > > > > > > I have 2 questions: :)
> > > > > > > >
> > > > > > > > 1. how do I rename a BinItem via
> > > > > > > > Python after it was created? Seems to be quite an easy task but
> > > > > > > > I fail to do it, as there is no .setName on this, right?
> > > > > > > >
> > > > > > > > 2. I have a new type of
> > > > > > > > versioning so I add it to right click event on timeline. I do
> > > > > > > > not want to over write the build in method. As I will add more
> > > > > > > > stuff soon, I would like to gather stuff in sub menus. Like "my
> > > > > > > > versioning" > "versionUp", "versionDown"
> > > > > > > >
> > > > > > > > Thanks heaps!
> > > > > > > > Joerg
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Nuke-python mailing list
> > > > > > > >
> > > > > > > >
> > > > > > > > Nuke-python@support.thefoundry.co.uk
> > > > > > > > mailto:Nuke-python@support.thefoundry.co.uk,
> > > > > > > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > > > > > > >
> > > > > > > >
> > > > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Nuke-python mailing list
> > > > > > > Nuke-python@support.thefoundry.co.uk
> > > > > > > mailto:Nuke-python@support.thefoundry.co.uk,
> > > > > > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > > > > > >
> > > > > > >
> > > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > >
> > > > >
> > > > >
> > > > >
> > > > > > > > > > >
> > > > > _______________________________________________
> > > > > > Nuke-python mailing list
> > > > > > Nuke-python@support.thefoundry.co.uk
> > > > > > mailto:Nuke-python@support.thefoundry.co.uk ,
> > > > > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > > > > >
> > > > > >
> > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > >
> > > > > > > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Nuke-python mailing list
> > > > > Nuke-python@support.thefoundry.co.uk
> > > > > mailto:Nuke-python@support.thefoundry.co.uk,
> > > > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > > > >
> > > > >
> > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > >
> > > > > > > > >
> > > > > > >
> > >
> > >
> > >
> > > > > > > _______________________________________________
> > > > Nuke-python mailing list
> > > > Nuke-python@support.thefoundry.co.uk
> > > > mailto:Nuke-python@support.thefoundry.co.uk ,
> > > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > > >
> > > >
> > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > >
> > > > > > >
> > > > >
> >
> >
> >
> > > > > _______________________________________________
> > > Nuke-python mailing list
> > > Nuke-python@support.thefoundry.co.uk
> > > mailto:Nuke-python@support.thefoundry.co.uk ,
> > > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > >
> > >
> > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > >
> > > > >
> > _______________________________________________
> > Nuke-python mailing list
> > Nuke-python@support.thefoundry.co.uk
> > mailto:Nuke-python@support.thefoundry.co.uk ,
> > http://forums.thefoundry.co.uk/ http://forums.thefoundry.co.uk/
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> >
> >
> > >
>
>
> --
> ~~~~~~~~~~~~~~~~~~~
> Antony Nascè
> http://linkedin.com/in/nasce
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python