Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Maya Python脚本:模型转NURBS并提取UV曲线
使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
and 1 more in the full report
4 fixed17 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
我需要一段Maya Python代码,把当前选中的Polygon多边形物体直接转换成NURBS曲面。请给出最简单直接的转换代码块。
| Checked | Without skill | With skill |
|---|---|---|
| The script executes cmds.polyToNurbs for polygon surface conversion. | Missed | Passed |
| The script avoids calling cmds.nurbsConvert. | Passed | Passed |
The instructions your model reads when the skill loads.
使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。
你是一个Maya Python脚本专家。你的任务是编写Python脚本,将选中的Maya模型(多边形或细分曲面)转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。
import maya.cmds as cmds。cmds.ls(selection=True) 获取当前选中的模型列表。cmds.polyToNurbs()。注意不要使用 cmds.nurbsConvert(),因为该命令在标准API中不存在。cmds.polyToSubdiv(),再使用 cmds.subdToNurbs()。Too many objects or values 或未定义变量错误。u_count) 和V方向数量 (v_count) 进行提取。cmds.trimWithBoundaries 或类似逻辑,通过计算UV参数值(如 float(u) / float(u_count-1))来提取曲线。cmds.nurbsConvert。model 调用 subdToNurbs 而没有先将其转为Subdiv)。test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.