Hi,
I have a very simple scene:
- A
Null Object
with anIn-/Exclusion User Data
- A
Python Tag
on theNull Object
- some script in the
Python Tag
import c4d
def main():
obj = op.GetObject()
objList = obj[c4d.ID_USERDATA,1] # point to the In-/Exclusion User Data
print(objList.GetObjectCount())
If I add scene objects into In-/Exclusion User Data
, or remove object within In-/Exclusion User Data
, Python Tag
will print correct object count.
But if I remove an object from the Object Manager
which had been added into the In-/Exclusion User Data
before, I can see object has been removed in In-/Exclusion User Data
, but Python Tag
report wrong object count (as if the object has not been removed).
And only if I make some change within the In-/Exclusion User Data
directly, that the Python Tag
report correct count number again.
I wonder if there is something I'm missing from the script for forcing InExclusionData
update, or it's a bug in the "updating system"?
Thanks!