Johannes, I actually did have this working (getting the selected value of the views). But, I doubted that I did because sometimes my list of selected views was not the same as what the Write node control panel was showing. I just did some more investigating this morning and discovered that the Write node views menu does not always update and reflect the state of the selections - if you change them via Python. I found that the list I generate seems to always be correct. However, I have to close the Write node panel and open it again to get it to refresh the current state of view selections! You can't always believe what you see, I guess… (8^\ Thanks for your help. I suppose I should probably report this as a bug...
Rich On Apr 22, 2013, at 8:35 AM, Richard Bobo <[email protected]> wrote: > Johannes, > > Awesome - thanks! > > Rich > > Sent from my iPod > > On Apr 22, 2013, at 3:32 AM, Johannes Hezer <[email protected]> wrote: > >> Hi Rich, >> >> writeNode = nuke.createNode('Write') >> writeNode['views'].value() >> >> this gives you back a list of the "checkboxed" views in the write node... >> >> Cheers >> Johannes >> >> >> >> On 04/22/2013 03:24 AM, Richard Bobo wrote: >>> HI, >>> >>> I sent the email below to nuke-python yesterday. Since I haven't seen any >>> replies, yet, I thought I'd cross-post it here, too… >>> >>> -- I'd also like to ask another question that's related to the project I'm >>> working on: How do you access the selected/unselected value of views in a >>> Write node? We are using Nuke's multi-view environment to the max and >>> working with hundreds of views (not an exaggeration). I have a script >>> written that allows me to select/deselect views in the Write node for >>> rendering. It's a *lot* easier than trying to bring up a gargantuan list of >>> views and select/deselect them, one at a time! ;^) LOL However, I can't >>> seem to find anything in the "views" knob that indicates if a view has its >>> box checked. I even looked in the script file itself and couldn't see >>> anything, other than the view's color, after its name. It's got to be >>> stored *somewhere*, since it's remembered when you reload the script! >>> Anyone have a clue…? >>> >>> Thanks, >>> >>> Rich >>> >>> >>> Begin forwarded message: >>> >>>> From: Richard Bobo <[email protected]> >>>> Subject: Multi-line scrollable text field >>>> Date: April 20, 2013 5:51:27 PM EDT >>>> To: Nuke Python discussion <[email protected]> >>>> >>>> Hi all, >>>> >>>> I'm trying to create a simple multi-line text info panel with >>>> nukescripts.PythonPanel. What I'm looking for would be something like what >>>> nuke.Panel has with addMultiLineTextInput. I must be missing something >>>> because I can't find the same thing in nukescripts. I'd just like to be >>>> able to show a scrollable list of items as information that I can update >>>> with a callback… Any help would be most appreciated! >>>> >>>> Thanks, >>>> Rich >>>> >>>> >>>> Rich Bobo >>>> Senior VFX Compositor >>>> Armstrong-White >>>> http://armstrong-white.com/ >>>> >>>> Email: [email protected] >>>> Mobile: (248) 840-2665 >>>> Web: http://richbobo.com/ >>>> >>>> "Until one is committed, there is hesitancy, the chance to draw back >>>> ineffectiveness. Concerning all acts of initiative and creation, there is >>>> one elementary rule - the ignorance of which kills countless ideas and >>>> splendid plans; that the moment one definitely commits oneself, then >>>> Providence moves too. Things occur to help that would never otherwise have >>>> occurred. A whole stream of events issues from the choice, raising in >>>> one's favour all manner of unforeseen incidents and meetings and material >>>> assistance, which no man could have dreamed would have come his way." >>>> - Goethe >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> _______________________________________________ >>> Nuke-python mailing list >>> [email protected], http://forums.thefoundry.co.uk/ >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >> >> >> -- >> STUDIO RAKETE GmbH >> Johannes Hezer, Compositing TD >> Schomburgstr. 120 >> D - 22767 Hamburg >> >> [email protected] >> Tel:+49 (0)40 - 380 375 69 - 0 >> Fax:+49 (0)40 - 380 375 69 - 99 >> >> ------------------------------------------------------ >> Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz: >> >> STUDIO RAKETE GmbH >> Schomburgstr. 120 D - 22767 Hamburg >> >> www.studiorakete.de / [email protected] >> >> Geschaeftsfuehrer: Jana Bohl / Hans-Martin Rickers >> >> Die Gesellschaft ist eingetragen im Handelregister des >> Amtsgerichts Hamburg unter der Nummer HR B 95660 >> USt.-ID Nr.: DE 245787817 >> _______________________________________________ >> Nuke-python mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
