THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/07/2011 at 03:29, xxxxxxxx wrote:
Hi,
using GetFlags() from an InExcludeData Object returns always 1.
Or do I use it wrong ?
"""
Select a Fracture Object and insert some Effectors into it's
Effector - list.
"""
import c4d
from c4d.documents import GetActiveDocument
def **inExclude_getFlags** (iedata) :
"""
Returns a generator generating all Flags of the Objects
within an InExcludeData Object.
"""
for n in xrange(iedata.GetObjectCount()) :
yield iedata.GetFlags(n)
def **main** () :
doc = GetActiveDocument()
op = doc.GetActiveObject()
if op is None:
return
for e in inExclude_getFlags(op[c4d.ID_MG_MOTIONGENERATOR_EFFECTORLIST]) :
print e
main()