THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/03/2008 at 08:43, xxxxxxxx wrote:
Cinema 4D Version: R9-R10.5
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
Unfortunately, an object is being created via a CallCommand() to 'Convert from Spline' and the Hair object that results isn't obvious (there may be more than one Hair object in the document). Is there any way to get the last object added to the document?
Currently, I'm considering an unpleasant method:
1. Store all current objects in an AtomArray.
3. Compare every object in AtomArray to every object in the document to see which one isn't in the AtomArray.
Overkill doesn't begin to describe this procedure (step 3 particularly). AtomArray::Find() may prove useful here - as long as I do some extra checks for veracity (is the unfound object actually a Hair object, e.g.).