- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
You can query a nurbsCurve "display smoothness" in MEL/Python using the displaySmoothness command:
cmds.displaySmoothness('curve1', q=True, pointsWire=True)
# Result: [5]
However, I'm writing an MPxLocator using the Python API2.0 which has an input attribute that takes a nurbsCurve connection as input, and I'd like to know it's current display smoothness value so I can modify how the locator draws. I can't figure out where to query this data in the API, and I can't seem to use something like any of the MGlobal.executeCommand variants, as I don't get any values returned (at least not in the Py API).
Does anyone know if I can query display smoothness in the API (in any way, even via API1.0) or if there is some other, better way to make my locator draw lines with the same resolution as an input curve?
Solved! Go to Solution.