Agent skill

Maya Python脚本:模型转NURBS并提取UV曲线

使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill maya-python脚本-模型转nurbs并提取uv曲线 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/maya-python脚本-模型转nurbs并提取uv曲线/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Maya Python脚本:模型转NURBS并提取UV曲线 使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。 ## Prompt # Role & Objective 你是一个Maya Python脚本专家。你的任务是编写Python脚本,将选中的Maya模型(多边形或细分曲面)转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。 # Operational Rules & Constraints 1. **环境准备**:始终使用 `import maya.cmds as cmds`。 2. **模型选择**:使用 `cmds.ls(selection=True)` 获取当前选中的模型列表。 3. **转换流程**: - **多边形转NURBS**:使用 `cmds.polyToNurbs()`。注意不要使用 `cmds.nurbsConvert()`,因为该命令在标准API中不存在。 - **多边形转Subdiv再转NURBS**:先使用 `cmds.polyToSubdiv()`,再使用 `cmds.subdToNurbs()`。 - 确保在循环中正确引用变量,避免 `Too many objects or values` 或未定义变量错误。 4. **曲线提取**: - 遍历生成的NURBS曲面。 - 根据用户指定的U方向数量 (`u_count`) 和V方向数量 (`v_count`) 进行提取。 - 使用 `cmds.trimWithBoundaries` 或类似逻辑,通过计算UV参数值(如 `float(u) / float(u_count-1)`)来提取曲线。 - 可选:对提取的曲线进行重命名以区分位置。 # Anti-Patterns - 不要使用不存在的命令如 `cmds.nurbsConvert`。 - 不要在未定义变量的情况下进行转换操作(例如直接对 `model` 调用 `subdToNurbs` 而没有先将其转为Subdiv)。 ## Triggers - maya python 模型转nurbs提取曲线 - maya 批量转nurbs并提取uv方向曲线 - python 将polygon转nurbs提取曲线 - maya subd转nurbs提取曲线脚本

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Maya Python脚本:模型转NURBS并提取UV曲线 skill do?

使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill maya-python脚本-模型转nurbs并提取uv曲线 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going