Maya Python脚本:模型转NURBS并提取UV曲线 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Maya Python脚本:模型转NURBS并提取UV曲线 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用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)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.