Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi! I'm working with a robotic arm that i designed and I want to control it making "inverse kinematics".
So, the point is that i select the joints of the robotic arm and with all the calculations joints move to the position that i want.
The problem is how can I edit this joints.
I know that first i need to select the joints:
ui.messageBox('Select a Joint, please')
selectedItem1 = ui.selectEntity("Select a Joint", "Joints")
selectedItem1Value = selectedItem1.entity
I do not know if this would be the right way to select the joint to modify it, but if it is, how can i modify its value?
angle = adsk.core.ValueInput.createByString('190 deg')
selectedItem1Value.angle = angle
this way it is not working. 😞
if someone knows how can i take a joint already created and modify it when i run an add-ins, please tell me 🙂
Solved! Go to Solution.