THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/07/2012 at 00:05, xxxxxxxx wrote:
Hi everybody,
I've a problem with the flags of the C4DAtom.CopyTo()-function.
The Python SDK says that there are a few optional flags for this function. But always I'm trying to use one of them I get the error message: 'module' object has no attribute 'COPY_NO_HIERARCHY'.
So I thougt: ok, then try it without using a flag. But the result was the error message: Required argument 'flags' (pos2) not found.
?? I thougt this parameter is optional?? Don't understand, how I can get this function working.
Does anybody else have an idea?
Here a small code snippet:
childs = obj[0].GetChildren()
splineSegment = c4d.BaseObject(c4d.Ospline)
if childs[seg].GetType() == splineSegment.GetType() :
childs[seg].CopyTo(splineSegment,flags=c4d.COPY_NO_HIERARCHY)
cheers,
sven