On 05/10/2017 at 11:58, xxxxxxxx wrote:
I'm trying to create a null and add it to an in/exclusion list. The list is in the user data of an xpresso tag. This will be run off of a script. I have this code so far:
import c4d
from c4d import gui, utils
def main() :
document = doc
tagowner = doc.SearchObject('StageLightMaster')
xtag = tagowner.GetFirstTag()
LinkList = xtag[c4d.ID_USERDATA,1]
NullMaster = c4d.BaseObject(5140)
document.InsertObject(NullMaster)
LinkList.InsertObject(NullMaster,1)
c4d.EventAdd()
if __name__=='__main__':
main()
I can run a count before and after the object is added and it seems to be running properly, but when I go to the list in the tag it is not updated to include the null. I read somewhere that I need to update the gui object for the changes to take place, but I'm not sure how to call it. Any help is greatly appreciated! Thanks!