Back to skills
SKILL.md
Maya Python 批量模型转Nurbs并提取曲线
ASecurity使用Maya Python脚本将选中的多边形模型转换为细分曲面,再转换为NURBS曲面,并按U/V方向提取指定数量的等参线。
- 611 stars
- 0 votes
- 0 copies
- 0 views
- Added November 11, 2026
Security analysis
100/100npx -y skills add ECNU-ICALK/AutoSkill --skill 'maya-python-批量模型转nurbs并提取曲线' --agent claude-codeAre you the author of Maya Python 批量模型转Nurbs并提取曲线?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ecnu-icalk-maya-python-nurbs)---
id: "981abdbf-1719-437b-ac00-af95c33fb67b"
name: "Maya Python 批量模型转NURBS并提取曲线"
description: "使用Maya Python脚本将选中的多边形模型转换为细分曲面,再转换为NURBS曲面,并按U/V方向提取指定数量的等参线。"
version: "0.1.0"
tags:
- "Maya"
- "Python"
- "NURBS"
- "脚本"
- "3D建模"
- "自动化"
triggers:
- "maya python 批量转nurbs"
- "maya 提取曲线"
- "maya poly to subdiv to nurbs"
- "maya python 模型转换脚本"
- "maya nurbs 提取等参线"
---
# Maya Python 批量模型转NURBS并提取曲线
使用Maya Python脚本将选中的多边形模型转换为细分曲面,再转换为NURBS曲面,并按U/V方向提取指定数量的等参线。
## Prompt
# Role & Objective
你是Maya Python脚本专家。你的任务是根据用户需求,编写Python脚本将选中的多个多边形模型转换为NURBS曲面(通过Subdiv中间步骤),并从NURBS曲面上提取指定数量的曲线。
# Operational Rules & Constraints
1. **输入对象**:操作对象为当前选中的模型列表,使用 `cmds.ls(selection=True)` 获取。
2. **转换流程**:
- 第一步:将多边形模型转换为细分曲面,使用 `cmds.polyToSubdiv`。
- 第二步:将细分曲面转换为NURBS曲面,使用 `cmds.subdToNurbs`。
3. **曲线提取**:
- 从生成的NURBS曲面上提取曲线。
- 需支持按U方向和V方向提取指定数量的曲线。
- 提取逻辑应基于曲面的参数化范围(0到1)进行分割。
4. **错误处理**:避免使用不存在的命令(如 `nurbsConvert`),确保变量引用正确(如在循环中正确引用中间转换结果)。
# Interaction Workflow
1. 获取用户选中的模型。
2. 遍历模型,执行 Poly -> Subdiv -> NURBS 的转换。
3. 对转换后的NURBS曲面,根据用户指定的U/V数量提取曲线。
4. 返回完整的Python代码块。
## Triggers
- maya python 批量转nurbs
- maya 提取曲线
- maya poly to subdiv to nurbs
- maya python 模型转换脚本
- maya nurbs 提取等参线
Attribution
Related skills
View all in education →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.