Remove Empty Nulls C4D Python Script…
Another useful Cinema 4D Python Script for to remove all empty nulls in your scene…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import c4d from c4d import gui def removeempty(obj): if not obj: return removeempty(obj.GetDown()) removeempty(obj.GetNext()) if not obj.GetDown(): if obj.GetType()== c4d.Onull: if not obj.GetFirstTag(): obj.Remove() def main(): obj = doc.GetFirstObject() removeempty(obj) c4d.EventAdd() if __name__=='__main__': main() |
Leave a Reply
Want to join the discussion?Feel free to contribute!