Hi,
I just installed 2023 and discovered parts of my scripts stopped functioning, because you can’t insert any tag into an In-Exclusion list anymore? :{
The In-ExclusionData is just a simple userData item on a pythonTag..
I included a simple script below, which works in previous versions of C4D - Just a pyTag (on a Null) with 3 pieces of user data (2 buttons and an inex List..)
So, A - I’m hoping this is a temporary bug.
or B - There’s a new way to automatically insert (especially python)Tags in some sort of list. (couldn’t find any changes in de docs..)
Please let me know, really need a solution.
tia, Jochem
import c4d # just a simple example..
def add():
inexList = op[c4d.ID_USERDATA,3]
item = op # <<< can't insert "op" or other pyTags anymore?..
item = op.GetObject().GetTag(5698) # e.g. vibrationTag, seems I can't insert any tag..
item = op.GetObject() # this works..
inexList.InsertObject(item, 0)
op[c4d.ID_USERDATA,3] = inexList
def rem():
op[c4d.ID_USERDATA,3] = c4d.InExcludeData()
def message(id, data):
if id == c4d.MSG_DESCRIPTION_COMMAND:
id2 = data['id'][0].id
if id2 == c4d.ID_USERDATA:
userDataId = data['id'][1].id
if userDataId == 1: add()
if userDataId == 2: rem()
def main(): pass