mcjRemoveNulls - Remove All Null Nodes Except Parents

mCasualmCasual Posts: 4,607
edited April 2016 in Freebies

this way >>> https://sites.google.com/site/mcasualsdazscripts7/mcjremovenulls

image

The way i wrote and use my scripts to create animations

i always end up with a whole lot of null nodes in my scenes

Then when i re-use the scene i have to hunt for those null nodes and delete them

we're talking about something like a 58 seconds long chore !

so this script here will review all the nodes in a scene

if the node is a null ( node.className()=="DzNode" )

and

if the node is not the parent of something ( node.getNumNodeChildren() == 0 )

then

it gets destroyed!

but there is an undo

so i broke my Yoda rule ."There is no undo, do or do not do"

 

image

mcjRemoveNulls.dsa.png
91 x 91 - 7K
mcjRemoveNullsDS1.ds.png
91 x 91 - 7K
Post edited by mCasual on

Comments

Sign In or Register to comment.