Skip to content
Back to skills

Maya Python 批量模型转Nurbs并提取曲线

ASecurity

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

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'maya-python-批量模型转nurbs并提取曲线' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Maya Python 批量模型转Nurbs并提取曲线?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Maya Python 批量模型转Nurbs并提取曲线
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-maya-python-nurbs/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-maya-python-nurbs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.