GetClone() question
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/06/2011 at 12:15, xxxxxxxx wrote:
i was wondering.... are you able to modify object parameters on an object that has been created with getClone()? or will it mess with the original? i seem to be getting errors sometimes and not others when i try to change object data of something that was created with GetClone(), and i was just wondering if GetClone returns a completely new object based on the original object, or a copy of the original with links to it's data?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/06/2011 at 13:45, xxxxxxxx wrote:
No, that would be nonsense. Every object has it's own container.
The reason, why you need GetClone is, when you want to copy an object multiple
times.This will mess up Cinema 4d and even crash it:
doc.InsertObject(doc.GetActiveObject())
Instead, use GetClone to get a copy
doc.InsertObject(doc.GetActiveObject().GetClone())
Of course you can treat the cloned object like every other object.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/06/2011 at 14:40, xxxxxxxx wrote:
When you clone an object. The original object is still active(selected) unless you de-select it with delBit(BIT_ACTIVE).
Maybe that's what's where you're errors are coming from?-ScottA
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/06/2011 at 21:45, xxxxxxxx wrote:
It would be interesting what errrors exactly
you get.Cheers,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/07/2011 at 00:49, xxxxxxxx wrote:
yeah i ended up using the get data set data and also get type to create a duplicate of the object, but your guy's way is a lot faster it would seem. i was more wondering the proper way to use GetClone. it seems to be more of a refrence to the original base container and less of a virtual clone. you still need to create an object based upon that container. thanks!