Dont know if this will bloat too but might be worth a try

 
for i in nuke.allNodes():
i['selected'].setValue(True)
nukescripts.node_delete(popupOnError=True)


 
Howard



>________________________________
> From: Luca Fiorentini <luca.fiorent...@gmail.com>
>To: Nuke Python discussion <nuke-python@support.thefoundry.co.uk> 
>Sent: Tuesday, 25 September 2012, 19:05
>Subject: [Nuke-python] nuke delete seems not to flush memory
> 
>
>Hi,
>
>I am trying to delete some nodes from the workspace with this code
>
>[CODE]for n in nuke.allNodes():
>    nuke.delete(n)[/CODE]
>
>where n is my object.
>This is part of a function that I use to delete and then recreate some nodes 
>and every time I call it the ram usage goes up.
>So it seems to me that nuke is unable to flush the memory where the nodes 
>where stored.
>Is this a known bug or I am missing something?
>
>Thanks for your time.
>
>-- 
>Luca Fiorentini - 3D Lighting Artist
>My Showreel - My blog - My Flickr
>
>
>_______________________________________________
>Nuke-python mailing list
>Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to