Interesting...  Thanks, Ivan, I'm looking into it now!

Rich


On Apr 29, 2013, at 10:04 PM, Ivan Busquets <ivanbusqu...@gmail.com> wrote:

> If you're in Nuke 7, you could use the new SceneView knob (used for Alembic 
> in ReadGeo).
> It has specialized methods to dynamically set items in the tree view, as well 
> as getting the selected values.
> 
> Ex:
> 
> class TestPanel( nukescripts.PythonPanel):
>     def __init__( self ):
>         nukescripts.PythonPanel.__init__( self, 'TestPanel')
>         self.sceneKnob = nuke.SceneView_Knob('selectViews', 'select views', 
> nuke.views())
>         self.addKnob(self.sceneKnob)
> 
> 
> t = TestPanel()
> if t.showModalDialog():
>     print t.sceneKnob.getSelectedItems()
> 
> 
> 
> On Mon, Apr 29, 2013 at 3:46 PM, Frank Rueter <fr...@beingfrank.info> wrote:
> There is nuke.CascadingEnumeration_Knob which gives you a an enumeration list 
> with checkboxes, but I'm not sure how to make it accept multiple selection. 
> Probably some kind of flag that needs to be set.
> 
> 
> On 30/04/13 00:34, Richard Bobo wrote:
>> Howard,
>> 
>> Yes, I'm doing something similar with the view names. I filter a list in 
>> various ways and populate a pull down, which can be used to further filter 
>> the list, etc. The piece I'm missing is the multi-selection pulldown at the 
>> end. I would love to see how you've done it! I'm using Python_Panel and I 
>> just can't figure out how to make the multi-selection pulldown from the list 
>> of built-in knob types...
>> 
>> Thanks!
>> Rich
>> 
>> Sent from my iPod
>> 
>> On Apr 29, 2013, at 5:37 AM, Howard Jones <mrhowardjo...@yahoo.com> wrote:
>> 
>>> How are you intending to filter?
>>> 
>>> I built a script a while ago that gives you a drop down, this then is used 
>>> to filter the next stage which is a list of episodes with check boxes, with 
>>> multi selection allowed,
>>> this then creates a panel populated with the shots found from the selected 
>>> episodes. This way I could select a project/episode/and shots and add data 
>>> to the shots (such as approved etc).
>>> 
>>> Would something like that be suitable
>>> 
>>> All done with the simple panel
>>>  
>>> Howard
>>> 
>>> From: Richard Bobo <richb...@mac.com>
>>> To: Nuke-Users Mailing List Postings List Postings 
>>> <nuke-us...@support.thefoundry.co.uk> 
>>> Cc: Nuke Python discussion <nuke-python@support.thefoundry.co.uk> 
>>> Sent: Monday, 29 April 2013, 5:36
>>> Subject: [Nuke-python] Pulldown_Knob with multiple checkboxes…?
>>> 
>>> Hi all,
>>> 
>>> I am hoping someone might have a solution for this… (cross-posting again)
>>> 
>>> I'm trying to create a pulldown menu that has the ability to check multiple 
>>> boxes. Basically, I am trying to put the functionality of the special 
>>> nuke.MultiView_Knob into a regular pulldown menu… Why, you ask?  Because I 
>>> want to *filter the list of views*, since right now it bleeds off my second 
>>> monitor and into thin air…
>>> 
>>> I can create a new MultiView_Knob in my own Python_Panel, but since it's a 
>>> private menu type, I can't do anything with the list of views it holds. 
>>> I've tried and it always gives me, essentially, nuke.views()...
>>> 
>>> The Enumeration_Knob only allows one selected item at a time - same with 
>>> the Pulldown_Knob. So, short of building my own panel with PySide or PyQt - 
>>> which I have not gotten into, yet - is there any type of pulldown that 
>>> would allow each item to have its own on/off checkbox - a multi-checkbox 
>>> pulldown menu, if you will?
>>> 
>>> I hope that's somewhat clear what I'm looking for!  (8^\
>>> 
>>> Thanks for any help,
>>> 
>>> Rich
>>> 
>>> 
>>> 
>>> Rich Bobo
>>> Senior VFX Compositor
>>> Armstrong-White
>>> http://armstrong-white.com/
>>> 
>>> Email:  richb...@mac.com
>>> Mobile:  (248) 840-2665
>>> Web:  http://richbobo.com/
>>> 
>>> "The most beautiful thing we can experience is the mysterious. It is the 
>>> source of all true art and science."
>>> - Albert Einstein (1879 - 1955)
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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

Reply via email to