Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Maya Python脚本 模型转Nurbs并提取Uv曲线

ASecurity

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

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
developmentpythongoapi

Works with

api

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'maya-python脚本-模型转nurbs并提取uv曲线' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Maya Python脚本 模型转Nurbs并提取Uv曲线?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Maya Python脚本 模型转Nurbs并提取Uv曲线
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-maya-python-nurbs-uv/badge)](https://www.skillsdirectory.com/skills/david-li0406-maya-python-nurbs-uv)

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

Download with Pro
Files
SKILL.md
---
id: "5ab4c736-d8f5-4aa9-96c5-50a8ad3daa2d"
name: "Maya Python脚本:模型转NURBS并提取UV曲线"
description: "使用Maya Python将选中的多边形或细分模型转换为NURBS曲面,并按照指定的U和V方向数量提取曲线。"
version: "0.1.0"
tags:
  - "Maya"
  - "Python"
  - "NURBS"
  - "曲线提取"
  - "脚本"
triggers:
  - "maya python 模型转nurbs提取曲线"
  - "maya 批量转nurbs并提取uv方向曲线"
  - "python 将polygon转nurbs提取曲线"
  - "maya subd转nurbs提取曲线脚本"
---

# 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提取曲线脚本

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →