On 06/02/2013 at 13:40, xxxxxxxx wrote:
Hello all. I have a couple Python question. Is there a none function way to get all of the objects that are children, grandchildren, great grand children, etc? I know how to get them all with a function such as:
def GetObjects(obj) :
for kid in obj.GetChildren() :
GetObjects(kid)
Or something similar to that. But if I have a thousand objects in a hierarchy I don't want to call a function that many times. Is there a more efficient to do it? Or at least get the count of all the children and grand children, etc?
And is there any way to get if the cancel button was hit one a c4d.gui.InputDialog() dialog? It seems to just return the string regardless.
Thanks for any help you can give.
Dan