THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/01/2011 at 14:02, xxxxxxxx wrote:
Hi,
there is a much simpler way to access user datas:
value1=op[c4d.ID_USERDATA, 1] #use 1 for the first user data
value2=op[c4d.ID_USERDATA, 2] #use 2 for the second user data
Btw, if your code returns:
((1, 133, 0), <c4d.BaseContainer object at 0x0000000016616308>)
def main() :
UserData = op.GetUserDataContainer()
obj1 = UserData.__getitem__(0) #better use UserData[0]
obj1_pos = obj1.GetRelPos() #obj1 is (1,133,0) so its a tuple and GetRelPos is not a member of a tuple
print obj1_pos
Cheers, Sebastian