Hi Howard, You could do something like:
original_list = ['A','B','C','D','E'] for i,v in enumerate( original_list ): if v == 'D': first = list( original_list.pop( i ) ) print first+original_list >>> ['D', 'A', 'B', 'C', 'E'] Id that what you want? cheers, diogo On Thu, May 3, 2012 at 1:58 PM, Howard Jones <mrhowardjo...@yahoo.com>wrote: > Hi > > I'm populating an enumeration knob with the contents of a directory. > In some instances though I would like to do this but have the knob display > a specific value first. > > That is > list=[A,B,C] > > enumeration knob displays > A > B > C > > but I'd like it to start at * > > A > B* > C > > On the simple panel I would set this by > B > A > B > C > > which is a bit clunky. However this is know with python panel and I would > rather do it neater if poss. > Is this possible? > > Thanks > Howard > > _______________________________________________ > 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