"You can do:..." err, no you can't, I must have had a pixel-creating
node selected (Checkerboard/Read etc)
n = nuke.nodes.CurveTool(
inputs = [nuke.nodes.CheckerBoard()],
operation = 'Max Luma Pixel')
nuke.execute(n, 1, 1) # is fine
n = nuke.nodes.CurveTool(
inputs = [nuke.nodes.Blur()],
operation = 'Max Luma Pixel')
nuke.execute(n, 1, 1) # segfaults
Fun.
Ben Dickson wrote:
> Interestingly it only crashes if nothing is selected.
>
> You can do:
>
> n = nuke.createNode('CurveTool', 'operation 3')
> nuke.execute(n.name(), 1, 1)
>
> ..but the segfault when passing the node object is definitely a bug -
> email [email protected]
>
> Bertrand Lempereur wrote:
>> I'm under Linux (OpenSuse) and this py code made Nuke crash every-time:
>>
>> n = nuke.createNode('CurveTool', 'operation 3')
>> nuke.execute(n,1,1)
>>
>> Guess it's bug!
>>
>> Regards,
>>
>> --
>> Bertrand Lempereur
>> TD at Mikros Image
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected]
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python