You're calling showLayers() from within showLayers, so the function is
entering an infinite loop.
You should take the nuke.display(...) line outside of your function for it
to work.
Or, you could do that in a single line:
nuke.display("nuke.layers(nuke.thisNode())", nuke.selectedNode())
On Wed, Apr 11, 2012 at 3:00 PM, R.C. <[email protected]> wrote:
> **
> Here is the simple script:
>
> def showLayers():
>
> query = nuke.selectedNode()
>
> nuke.display("showLayers()", nuke.selectedNode(), "Layers") return
> nuke.layers(query)
>
> showLayers()
>
>
> When this is run I get an immediate core dump.
>
> Anyone know why or how to get around this.
>
> Thanks
> Ray
>
>
> _______________________________________________
> 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