or even this?
nuke.createNode("StickyNote", 'selected 1')
On Mon, Nov 21, 2011 at 11:14 AM, Kurian O.S <[email protected]> wrote:
> import nuke
>
> a = nuke.createNode("StickyNote")
>
> a.setSelected(True)
>
>
> Like this ?
>
> On Mon, Nov 21, 2011 at 3:28 PM, Ean Carr <[email protected]> wrote:
>
>> Hi all,
>>
>> Seems like most nodes in Nuke are selected on creation with the exception
>> of StickyNote. Anyone know how to force selected=True on creation? I've
>> tried the following without success:
>>
>> def leaveStickySelected():
>> # This doesn't work.
>> nuke.thisNode().setSelected(True)
>>
>> nuke.addOnUserCreate(leaveStickySelected, nodeClass='StickyNote')
>>
>> # This doesn't work either.
>> nuke.knobDefault('StickyNote.selected', 'True')
>>
>> Thanks,
>> Ean
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>
>
> --
> --:: Kurian ::--
>
>
> _______________________________________________
> 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