Message 1 of 21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning!!!
When I try to define a support in Python with the follwoing code,
sup = labels.Create(rp.IRobotLabelType.I_LT_SUPPORT, 'sup')
sup_dt=rp.IRobotNodeSupportData
sup_dt = sup.Data
sup_dt.UX = 1
sup_dt.UY = 1
sup_dt.UZ = 1
sup_dt.RX = 1
sup_dt.RY = 1
sup_dt.RZ = 1
labels.Store(sup)
I got the error:
File "<ipython-input-56-8cf91e21e0e8>", line 1, in <module>
sup_dt = sup.Data
AttributeError: '__ComObject' object has no attribute 'Data'
Can someone help me?
Thanks
Solved! Go to Solution.