Hi Ron, That's because the fbx_node_name knob has the SAVE_MENU flag, which means all menu items get saved with the script (making that the actual value of the knob)
You can see the difference if you copy-paste your node into a text editor, vs another node with an enumeration knob, like a shuffle. Or try running this in the Script editor, which should show the difference between using the nuke.SAVE_MENU flag or not: n = nuke.createNode('NoOp') k1 = nuke.Enumeration_Knob('test1', 'test1', ['a', 'b', 'c']) k2 = nuke.Enumeration_Knob('test2', 'test2', ['a', 'b', 'c']) k2.setFlag(nuke.SAVE_MENU) n.addKnob(k1) n.addKnob(k2) If you want to get the actual selected value from an fbx_node_name knob, you could use something like this instead: [python {nuke.thisNode()['fbx_node_name'].values()[int(nuke.thisNode()['fbx_node_name'].getValue())]}] Hope that helps. Cheers, Ivan On Thu, Jan 19, 2012 at 4:42 AM, Ron Ganbar <ron...@gmail.com> wrote: > Hi guys, > I want to use a tcl expression in the label that will show me from an FBX > read_geo the selected object (called node in the fbx import dialog). > > If I use this in a ReadGeo's label: > [value fbx_node_name] > I get the whole list from the dropdown menu instead of just the selected > one. Feels like a bug to me, cause when I use the same tcl code on a > Shuffle node I just get the selected value from the dropdown menu, not the > whole list. > > Thanks! > Ron Ganbar > email: ron...@gmail.com > tel: +44 (0)7968 007 309 [UK] > +972 (0)54 255 9765 [Israel] > url: http://ronganbar.wordpress.com/ > > > _______________________________________________ > Nuke-users mailing list > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users