Hi, I'm transferring an expresso setup I have into a python tag object. I have my python tag attached to a null in the scene and I'd like to be able to see the userdata of the python tag attached to the null like I can if I add a Compositing tag. I tried this code below but that only copies the userdata instead of linking it. Any ideas would be super helpful!
import c4d
from c4d import gui
def main():
target = op[c4d.ID_USERDATA,5] #The null I want to transfer the userdata to
obj = op #The userdata I want to transfer
for id, bc in obj.GetUserDataContainer():
target.SetUserDataContainer(id, bc)
block = op [c4d.ID_USERDATA,4]
color = op [c4d.ID_USERDATA,2]
block[c4d.ID_BASEOBJECT_COLOR] = c4d.Vector(color)