MEL or Python script to convert mesh to nurbs

MEL or Python script to convert mesh to nurbs

cheska_nodado
Explorer Explorer
1,876 Views
2 Replies
Message 1 of 3

MEL or Python script to convert mesh to nurbs

cheska_nodado
Explorer
Explorer

Anyone knows a MEL / Python script that I can copy and paste at Windows > Generel Editors > Script Editor to convert Mesh to Nurbs ?

Accepted solutions (1)
1,877 Views
2 Replies
Replies (2)
Message 2 of 3

mcw0
Advisor
Advisor

I don't believe there's a direct way to convert a mesh to nurbs.  You have to convert the mesh to subD, then convert the subD to nurbs.  You can do those manually and grab the commands from the scriptEditor to construct your script.

Message 3 of 3

amaterasu-qbb
Collaborator
Collaborator
Accepted solution

In mel.
Enable Echo All Command in the Script Editor (and turn it off when you don't use it anymore).
Click on the one you want to run.

Here's an example: run the NURBS to Polygons Options. Then you will get the following command

NURBSToPolygonsOptions;

The first letter of the command should be capitalized and the command should be blue by default when copied and pasted into the Script Editor.
You can also use this command from the Shelf, Marking-menu and Hotkey Editor.