My goal here is to create temporary Userdata.
... bContainer = c4d.GetCustomDataTypeDefault(myType) bContainer[c4d.DESC_NAME] = "TempData" myID = obj.AddUserData(bContainer) ...
It turns out myType is not an integer, which is what GetCustomDataTypeDefault expects, it's a <type 'float'> passed along from a source somewhere else. Yet, another function could make it a vector instead... Is there a way to cross check myType with c4d.DTYPE_REAL, c4d.DTYPE_VECTOR, and so on, or simply get the proper integer value based on type dynamically?
Or should I drop this idea altogether and get Basecontainers from different sources with GetClone so I could feed them to the AddUserData method whenever necessary?
Thanks for your time,