THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2002 at 10:58, xxxxxxxx wrote:
Cinema 4D Version: 8.014
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
Well, let's see if I can explain this in a simple way:
I have a routine that goes through all objects in a document, recursively (thank you Mikael for it ;-)
Each object that matches a criteria is affected by an action.
My problem is when the action is deleting the objects
If two objects in a row (meaning one following another) meet the criteria, only the first one is deleted.
I believe this is due to the fact that the recursive routine calls the deletion routine and the next thing it does it to recursively call itself with object->GetNext( ), so it skips one object.
I tried doint a conditional reculsive call with just object (no ->GetNext( )) whenever the action is deletion but I get stack overflows.
Can anyone help me?
I can provide a listing.
Thank you very much in advance.