italink/unrealclientprotocol/unreal-modeling-attributes

Claude Code and agent skill by italink/unrealclientprotocol

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

GeometryScript 网格属性操作。当用户要求设置/查询顶点色、Polygroup、材质 ID 时使用。

Install

npx vskill@latest install italink/unrealclientprotocol/unreal-modeling-attributes

SKILL.md

建模 — 属性

前置条件:先阅读 unreal-modeling。

库

库CDO
顶点色/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshVertexColorFunctions
Polygroup/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshPolygroupFunctions
材质/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshMaterialFunctions

TargetMesh 为 UDynamicMesh* 路径字符串。Debug 省略。需要 FGeometryScriptMeshSelection 的函数,用 MeshOperationLibrary 桥接。需要 FGeometryScriptColorList 的函数,用 MakeColorList/GetColorListArray 桥接。

顶点色函数

函数关键参数说明
SetMeshConstantVertexColorTargetMesh, Color(FLinearColor), Flags, bClearExisting设置全 mesh 统一顶点色
SetMeshSelectionVertexColorTargetMesh, Selection, Color, Flags, bCreateColorSeam设置选中区域顶点色
SetMeshPerVertexColorsTargetMesh, VertexColorList批量设置每顶点颜色(列表大小 = MaxVertexID)
GetMeshPerVertexColorsTargetMeshout:VertexColorList、bIsValidColorSet、bHasVertexIDGaps、bHasSplitColors
SetMeshTriangleVertexColorTargetMesh, TriangleID, Color, Flags, bDeferChangeNotifications设置单个三角形顶点色
GetMeshTriangleVertexColorsTargetMesh, TriangleID返回三角形三个角的顶点色
BlurMeshVertexColorsTargetMesh, Selection, Options模糊/平滑顶点色
TransferVertexColorFromMeshTargetMesh, SourceMesh, Options从另一个 mesh 传输顶点色
FGeometryScriptColorFlags
字段类型默认值说明
bRedbooltrue影响 R 通道
bGreenbooltrue影响 G 通道
bBluebooltrue影响 B 通道
bAlphabooltrue影响 A 通道

Polygroup 函数

函数关键参数说明
SetNumExtendedPolygroupLayersTargetMesh, NumLayers设置扩展 Polygroup 层数
ClearPolygroupsTargetMesh, GroupLayer清除 Polygroup(全部设为 0)
SetPolygroupForMeshSelectionTargetMesh, GroupLayer, Selection, SetPolygroupIDOut设置选中区域的 Polygroup ID
SetGroupIDForMeshSelectionTargetMesh, GroupLayer, Selection, NewGroupID设置选中区域为指定 Group ID
GetTrianglePolygroupIDTargetMesh, GroupLayer, TriangleID获取三角形的 Polygroup ID
GetAllPolygroupIDsTargetMesh, GroupLayer获取所有 Polygroup ID 列表
GetPolygroupIDsInMeshSelectionTargetMesh, GroupLayer, Selection获取选中区域内的 Polygroup ID 列表
ComputePolygroupsFromAngleThresholdTargetMesh, GroupLayer, CreaseAngle, MinGroupSize按角度阈值自动计算 Polygroup
ComputePolygroupsFromPolygonDetectionTargetMesh, GroupLayer, bRespectUVSeams, bRespectHardNormals, QuadAdjacencyWeight, MinQuadCount按多边形检测计算 Polygroup
CopyPolygroupsLayerTargetMesh, FromGroupLayer, ToGroupLayer复制 Polygroup 层
ConvertComponentsToPolygroupsTargetMesh, GroupLayer将连通分量转为 Polygroup
ConvertUVIslandsToPolygroupsTargetMesh, GroupLayer, UVLayer将 UV 岛转为 Polygroup
DeleteTrianglesInPolygroupTargetMesh, GroupLayer, PolygroupID删除指定 Polygroup 的三角形
FGeometryScriptGroupLayer
字段类型默认值说明
bDefaultLayerbooltrue使用默认层
ExtendedLayerIndexint0扩展层索引(当 bDefaultLayer=false 时)

材质函数

函数关键参数说明
EnableMaterialIDsTargetMesh启用材质 ID 属性
SetMaterialIDOnTrianglesTargetMesh, TriangleIDList, MaterialID设置指定三角形的材质 ID
SetMaterialIDForMeshSelectionTargetMesh, Selection, MaterialID设置选中区域的材质 ID
SetAllMeshMaterialIDsTargetMesh, TriangleMaterialIDList批量设置所有三角形的材质 ID
GetTriangleMaterialIDTargetMesh, TriangleID获取三角形的材质 ID
GetAllTriangleMaterialIDsTargetMesh获取所有三角形的材质 ID 列表
GetMaterialIDsOfMeshTargetMesh获取 mesh 中使用的所有材质 ID 集合
RemapMaterialIDsTargetMesh, FromMaterialID, ToMaterialID重映射材质 ID
SetPolygroupMaterialIDTargetMesh, GroupLayer, PolygroupID, MaterialID按 Polygroup 设置材质 ID
DeleteTrianglesByMaterialIDTargetMesh, MaterialID删除指定材质 ID 的三角形
GetMaxMaterialIDTargetMesh获取最大材质 ID
CompactMaterialIDsTargetMesh压缩材质 ID(移除未使用的间隙)

JSON 示例

设置全 mesh 统一顶点色(红色):

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshVertexColorFunctions","function":"SetMeshConstantVertexColor","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","Color":{"R":1,"G":0,"B":0,"A":1},"Flags":{"bRed":true,"bGreen":true,"bBlue":true,"bAlpha":true},"bClearExisting":true}}

按角度阈值计算 Polygroup(30° 折痕):

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshPolygroupFunctions","function":"ComputePolygroupsFromAngleThreshold","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","GroupLayer":{"bDefaultLayer":true,"ExtendedLayerIndex":0},"CreaseAngle":30,"MinGroupSize":2}}

设置材质 ID(将选中区域设为材质 1):

先用 MeshOperationLibrary.SelectTrianglesByIDs 创建选择,然后:

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshMaterialFunctions","function":"SetMaterialIDForMeshSelection","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","Selection":"<从桥接函数获取>","MaterialID":1}}

发现

对上述任意 CDO 路径调用 DescribeObject 可查看完整函数列表和参数签名。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
114
Repository forks
14
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/italink/unrealclientprotocol/unreal-modeling-attributes/badge)](https://verified-skill.com/skills/italink/unrealclientprotocol/unreal-modeling-attributes)

Something wrong with this skill or its page? Tell us.