Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

weights of NURBS curve not exposed via API?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
JesusFreke
233 Views, 3 Replies

weights of NURBS curve not exposed via API?

I was looking at the api for NURBS curves (e.g. NurbsCurve3D), and I noticed that the control point weights do not seem to be exposed via the API? We have curve.controlPoints and curve.knots, but no curve.weights? I'm curious if this is just an oversight, or maybe I'm missing something? 

3 REPLIES 3
Message 2 of 4
kandennti
in reply to: JesusFreke
Message 3 of 4
JesusFreke
in reply to: kandennti

Ah! I had forgot about the getData method. Thanks!

Message 4 of 4
dalton.messmer
in reply to: JesusFreke

For NURBS curves and surfaces, individual methods exist to retrieve information such as control points, knots, properties, etc. It's strange that a weights() method is the only one missing, which seems like an oversight to me.

 

If I only want weights data, I have to go through the getData(…) method which also returns all the other NURBS data and this is less efficient. It would be nice to be able to retrieve just the weights on their own.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report