Yep, that works, thanks Josh. Still, wonder why an onUserCreate callback or
nuke.knobDefault doesn't work. Seems like a bug. Oh well, glad there are 4
ways to do this and one of them worked.

On Mon, Nov 21, 2011 at 11:20 AM, Josh Imbruglia <
[email protected]> wrote:

> 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
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to