Message 1 of 5
OpenMaya get/set edit points positions for nurbscurve

Not applicable
06-13-2021
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
OpenMaya has methods
OpenMaya.MFnNurbsCurve.cvPosition()
OpenMaya.MFnNurbsCurve.setCVPosition()
for get and set CVs positions.
But what if i want to change position of some Edit Point. For example i want curve went through some specified position (1, 0.5, 2.3), so i need change Edit Point position for precise.
By cmds or mel we can get and set EP position with
epPos = cmds.pointPosition( 'curve1' + ".ep[1]", w=True )
cmds.move( 1, 0.5, 2.3, 'curve1' + ".ep[1]", worldSpace=True, absolute=True )
But how perform the same with OpenMaya?