Logo de Modeling

Modeling

Comunidade
kevinpbuckley
modeling

Create and edit static/skeletal mesh geometry programmatically (ModelingService) — primitives, booleans, extrude/inset/bevel on selections, remesh/simplify/subdivide, deform, voxel ops, auto-UV, normals, repair, collision, LODs, bake, and saving to assets. Use when the user asks to build, kitbash, block out, fix, clean up, or generate 3D meshes in the editor without Blender.

Visão geral

Publicado porkevinpbuckley
RepositórioVibe3D
Nome da habilidademodeling
Estrelas
66
Forks
11
Arquivos incluídos
3
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 3

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por kevinpbuckley no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Modeling no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/kevinpbuckley/Vibe3D/tree/main/Content/Skills/modeling
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/Vibe3D.git /tmp/Vibe3D
mkdir -p .claude/skills
cp -r /tmp/Vibe3D/Content/Skills/modeling .claude/skills/modeling
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Modeling em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Modeling automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Modeling não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

🧠 Brains complement: IF an unreal-engine-skills-manager tool (external MCP) exists in this session, call it with {action: "load", skill: "meshes-static-and-skeletal"} for UE domain knowledge on this topic — correct APIs, architecture, best practices — and treat it as the rubric for any review / "best practices" question. If no such tool is available (e.g. running under Claude Code or Codex without that MCP), skip this line entirely and proceed with this skill alone — do NOT attempt the call.

Mesh Modeling Skill

ModelingService (unreal.ModelingService) is the programmatic half of Unreal's Modeling Mode: the same operators the 97 interactive tools are built on, exposed as functions on an in-memory DynamicMesh that you build up and then save as a StaticMesh / SkeletalMesh asset. Nothing here needs a viewport, a gizmo, or Blender.

Mental model — a session of mesh handles:

  1. create_mesh() / load_mesh_from_static_mesh(path) / load_mesh_from_actor(label) → a result; check success, then use its integer .handle.
  2. Every op mutates the handle's mesh in place and returns an FModelingResult (success, message, triangle_count, vertex_count).
  3. save_mesh_to_static_mesh(handle, "/Game/Props/SM_Crate") writes the asset (creates or replaces); spawn_static_mesh_actor(...) places it.
  4. release_mesh(handle) when done (or release_all_meshes()); handles are session-scoped and not saved.

Operations that take a selection use a named selection created on the same handle (select_all, select_by_normal_angle, select_in_box, select_in_sphere, select_by_material_id, expand_contract_selection, invert_selection). Pass "" as the selection name to mean "the whole mesh".

Quick start — a crate with a lid seam, UVs, collision, LODs

python
import unreal
svc = unreal.ModelingService
h = svc.create_mesh().handle
svc.append_box(h, unreal.Transform(), 100, 100, 100)                       # body
lid = svc.create_mesh().handle
svc.append_box(lid, unreal.Transform(unreal.Vector(0, 0, 90)), 104, 104, 4) # lid slab
svc.boolean(h, lid, "Union")
svc.select_by_normal_angle(h, "top", unreal.Vector(0, 0, 1), 5.0)
svc.inset_faces(h, "top", 6.0)                                              # panel line on the lid
svc.extrude_faces(h, "top", -1.5)                                           # recess it
svc.bevel_polygroups(h, 0.8)
svc.recompute_normals(h, 30.0)
svc.auto_uv(h, "PatchBuilder", 0)
r = svc.save_mesh_to_static_mesh(h, "/Game/Props/SM_Crate", True, True)     # nanite off, collision on
print("CREATED:", r.asset_path, r.triangle_count, "tris")
svc.generate_collision("/Game/Props/SM_Crate", "ConvexHulls", 4)
svc.set_lods("/Game/Props/SM_Crate", [1.0, 0.5, 0.25])
svc.spawn_static_mesh_actor("/Game/Props/SM_Crate", unreal.Transform(unreal.Vector(0, 0, 0)), "Crate_01")
svc.release_all_meshes()

Then look at it, framed on the actor, using the available viewport capture tool (native Unreal MCP exposes capture_image with source="editor"). A successful call is not proof the shape is right.

A level made with new_level() has no lighting, so a black capture may be a lighting problem. For daylight, use a DirectionalLight pointing down (Rotator(roll=0, pitch=-48, yaw=125)), a SkyLight and SkyAtmosphere. A dark studio can instead use movable RectLights and a floor. Use an unbound PostProcessVolume with fixed exposure for consistent material evaluation; tune exposure to the actual light intensities rather than treating one bias value as universal.

For modeled lettering and logos, read modeled-lettering.md. For lit promotional images, high-resolution capture, or distributable asset packs, read showcase-and-delivery.md. These sibling documents are also registered as native Unreal agent sub-doc skills by Vibe3D.

Function map (Python names)

AreaFunctions
Sessioncreate_mesh(), load_mesh_from_static_mesh(path, lod=0), load_mesh_from_skeletal_mesh(path, lod=0), load_mesh_from_actor(label), copy_mesh(handle), release_mesh(handle), release_all_meshes(), list_meshes(), get_mesh_info(handle)
Primitives (append into a handle)append_box, append_sphere, append_sphere_box, append_cylinder, append_cone, append_capsule, append_torus, append_rectangle, append_disc, append_stairs, append_curved_stairs, append_extrude_polygon(handle, transform, points2d, height), append_revolve_polygon(handle, transform, points2d, radius, steps, degrees), append_sweep_polyline(handle, transform, profile2d, path_transforms) (open tube — prefer the next one for solids), append_loft(handle, transform, closed_profile2d, frames) (capped, always outward; frame scale = chord), append_mesh(handle, other_handle, transform), append_mesh_at_transforms(handle, other, [transforms]), append_mesh_along_polyline(handle, other, points, spacing, up)
Booleans`boolean(target, tool, "Union
Selectionsselect_all(handle, name), select_by_normal_angle(handle, name, normal, max_angle_deg), select_in_box(handle, name, box_min, box_max), select_in_sphere(handle, name, center, radius), select_by_material_id(handle, name, material_id), select_by_polygroup(handle, name, group_id), select_connected(handle, name, point) (whole connected piece nearest the point), select_by_bone_weight(handle, name, "bone,bone", min_weight=0.25) (vertices those bones drag — region finding for weight repair), expand_contract_selection(handle, name, new_name, iterations, contract), invert_selection(handle, name, new_name), selection_count(handle, name), selection_bounds(handle, name) → (min, max) (Python drops the bool; an empty selection gives zero vectors), clear_selections(handle)
Poly edit on selectionsextrude_faces(handle, sel, distance, direction), offset_faces(handle, sel, distance), inset_faces(handle, sel, distance), outset_faces(handle, sel, distance), delete_faces(handle, sel), translate_selection(handle, sel, delta), bevel_polygroups(handle, distance, subdivisions), offset_mesh(handle, distance), shell_mesh(handle, thickness)
Meshremesh(handle, target_triangles, edge_length=0), simplify_to_triangle_count(handle, n), simplify_to_vertex_count(handle, n), simplify_to_tolerance(handle, tolerance), simplify_planar(handle) (lossless, coplanar only), `subdivide(handle, level, "PN
Queries, sampling, hullsray_cast(handle, origin, direction) / nearest_point(handle, point) → {found, position, triangle_id, distance}, is_point_inside(handle, point), sample_surface_points(handle, radius, max) → transforms for scattering, convex_hull(handle), convex_decomposition(handle, num_hulls), swept_hull(handle, frame) → NEW handles, measure_distance(a, b) → max/mean/rms (verify LODs and simplifications)
Deformbend(handle, orientation, angle, extent), twist(...), flare(handle, orientation, percent_x, percent_y, extent), noise(handle, sel, magnitude, frequency, seed), displace_from_texture(handle, sel, texture_path, magnitude, uv_layer)
Voxelvoxel_solidify(handle, grid_resolution), `voxel_morphology(handle, "Dilate
UVs / normals / groups / materials / colors`auto_uv(handle, "XAtlas
Transformtransform_mesh(handle, transform), translate_mesh, rotate_mesh, scale_mesh, `recenter_mesh(handle, "Bounds
Assetssave_mesh_to_static_mesh(handle, path, replace_existing, enable_collision, enable_nanite), save_mesh_to_skeletal_mesh(handle, path, skeleton_path="") ("" creates <path>_Skeleton from the mesh bones), set_asset_materials(asset_path, "/Game/M_A,/Game/M_B"), transfer_bone_weights(handle, source_skeletal_mesh_path), smooth_bone_weights(handle, skeleton_path), prune_bone_weights(handle, "bone,bone"), scale_bone_weights(handle, sel, "bone,bone", scale, receiver_bone="") (regional weight repair; freed weight -> receiver or strongest other influence), smooth_selection_bone_weights(handle, sel, iterations=3, alpha=0.5) (feather weight seams), inspect_bone_weights(handle, sel="") (per-bone verts/avg/max, weight sums, max influences), create_bones(handle, [ModelingBoneDef(name, parent_name, transform)]), bind_selection_to_bone(handle, sel, bone, weight=1), list_bones(handle) → per-bone vertex counts, `generate_collision(asset_path, "MinVolumeShapes

GeometryScript coverage

ModelingService wraps ~115 of GeometryScript's 622 functions — every operator behind a Modeling Mode tool plus the asset plumbing. What it deliberately does not wrap, and how to reach it:

Not wrappedWhyReach it with
GeometryScript_List*, VectorMath, Transform, Box, OrientedBox, Ray, SimplePolygon, PolyPath, PolygonList, PointSetSamplingPure math / container helpers, not editor operationsCall directly — they take plain values
MeshWeightMap, MeshSculptLayers, MeshGeodesic, TextureMap, VolumeTextureBake, EditorTextureMapNiche; would double the API for rare usemesh = svc.get_dynamic_mesh(handle) then e.g. unreal.GeometryScript_MeshGeodesics.create_surface_path(mesh, ...)
Per-function option structs (remesh smoothing type, bake bit depth, XAtlas iterations, ...)The wrappers fix sensible defaultsSame trick — the handle's UDynamicMesh is the live object; GeometryScript calls edit it in place and the next svc.* call sees the result

Discover any of them with discover_python_class('unreal.GeometryScript_<Library>').

Exact signatures: discover_python_class('unreal.ModelingService'). The long tail — anything not here — is reachable directly: the mesh behind a handle is svc.get_dynamic_mesh(handle), which you can pass to any unreal.GeometryScript_* library function in the same script.

Critical rules

  • Units are centimeters, +Z up, origin at the base by default for append_box/append_cylinder (origin="Center" to change). A 100 cm crate at Transform() sits on the floor.
  • unreal.Rotator(a, b, c) is (roll, pitch, yaw) — not the C++ FRotator(Pitch, Yaw, Roll) order. Passing a yaw positionally silently pitches the part instead of turning it, and nothing errors: a mug handle comes out as a horizontal donut, a sofa spawns upside down, a light aims at the sky. Always pass by keyword — unreal.Rotator(roll=0, pitch=0, yaw=90) — and confirm with get_mesh_info bounds (a flipped part shows negative Z) or by reading .roll/.pitch/.yaw back.
  • Laying a cylinder/cone/capsule on an axis: pitch=-90 gives +X, pitch=+90 gives −X. These primitives are built along local +Z from their base, and the intuitive pitch=90 sends them backwards — a windmill's windshaft and hub grew back into the roof instead of out to the sails, which only showed up as an unexpected bounds_max.x. roll=-90 gives +Y, roll=+90 gives −Y. Check get_mesh_info bounds after the first one and reuse whatever proved correct.
  • Low-step primitives are polygons, and their flats sit inside the nominal radius. A torus or cylinder with steps=8 has radius R only at its corners and R·cos(π/8) = 0.92·R at the middle of each face. Parts placed at radius R between corners therefore miss it entirely: an octagonal gallery deck left its railing posts hanging in the air, connected to nothing. Either raise the step count until the difference is under your part's thickness (24 steps → 0.9% error), or place the parts at the corner angles.
  • Booleans want closed meshes. Run get_mesh_info — is_closed false or open_border_edges > 0 means fill holes / weld first, or the boolean produces flaps. self_union cleans up kitbash overlaps.
  • Selections go stale when topology changes. After boolean, remesh, bevel, subdivide, etc. re-run the select_* call before using the name again; the service refuses a selection made before the mesh changed (success: false, "stale") rather than acting on wrong triangles. extrude_faces, offset_faces, inset_faces and outset_faces are the exception: the selection they used then holds the faces they moved (an inset's inner panel), so inset → extrude chains.
  • Order for a clean asset: model → repair → recompute_normals → auto_uv → save → generate_collision → set_lods. UVs before save, collision and LODs after (they act on the asset).
  • save_mesh_to_static_mesh replaces LOD0 of an existing asset when replace_existing is true; its materials are kept. Existing collision/LODs on that asset are not touched — regenerate them if the silhouette changed.
  • Log for rollback: print("CREATED:", path) after each save; there is no undo for handle ops (they are in memory), but assets go through the editor and TransactionService checkpoints apply.
  • Verify with evidence. get_mesh_info after each stage (triangle/vertex counts, bounds, closed), and a viewport capture once it is in the level.
  • Swept surfaces can come out inside-out. After append_sweep_polyline + fill_holes, check get_mesh_info(h).volume; a negative volume means the normals face inward and self_union / boolean will silently discard the part as negative space. Call flip_normals(h) first. Sweep frame semantics: with frame rotation yaw 90 the profile's X runs along world -X from the frame position and its Y along world Z; put the profile scale (e.g. a wing chord) in the frame's Scale.
  • XAtlas needs a compact mesh. fill_holes and boolean cuts leave id gaps; auto_uv compacts automatically from 2.2, older builds need unreal.GeometryScript_MeshRepair.compact_mesh(svc.get_dynamic_mesh(h)) first.
  • Budget triangles. Voxel ops and PN tessellation explode counts; follow them with simplify_to_triangle_count. Keep props under ~20k tris unless Nanite is on.
  • Don't boolean two surfaces that nearly coincide. A coffee disc unioned at the exact radius of the mug's inner wall produced slivers and 214 open border edges. Either leave a clear margin (~2% of the feature size) or skip the boolean: appending the part into the same handle as its own nested closed component is valid for a StaticMesh and is what you want for liquid in a vessel, glass in a frame, or anything that never needs to be one watertight shell.
  • repair() can open a closed mesh. Collapsing degenerates leaves holes. It now re-closes a mesh that arrived watertight (keep_closed=True by default) — pass False for the raw result — but always re-check is_closed before a boolean or voxel op.

Common mistakes

  • Calling extrude_faces with "" (whole mesh) — that shells the whole object outward. Select faces first.
  • Forgetting auto_uv before bake_textures or before saving a mesh that will take a textured material.
  • set_lods with [1.0] only — that removes extra LODs. Give one entry per LOD, LOD0 first.
  • Loading a mesh from an actor and saving back to a new path, then wondering why the level didn't change — spawn or reassign the actor's mesh.
  • Passing material_id positionally. These wrappers have long tails of optional arguments (append_stairs(handle, transform, step_width, step_height, step_depth, num_steps, floating, material_id)), so one missing argument silently feeds your material id to floating. Pass the tail by keyword: svc.append_stairs(h, T(), step_width=40, step_height=10, step_depth=20, num_steps=4, material_id=7).
  • Assuming a rotation worked because the call returned success. Nothing here validates orientation — check get_mesh_info bounds, then look at it.

Material slots

A mesh carries material IDs; the saved asset carries material slots, one per distinct ID in ascending order. So the workflow is: give each part its id as you append it, then point the slots at real materials after saving.

python
svc.append_revolve_polygon(h, T(), cup_profile, 0, 48, 360, 0)          # id 0 = ceramic
svc.append_cylinder(h, T(V(0,0,6.6)), 3.7, 1.2, 48, 0, True, "Base", 1) # id 1 = coffee
print(svc.get_mesh_info(h).material_ids)                                # -> [0, 1]  ALWAYS check
svc.save_mesh_to_static_mesh(h, "/Game/Props/SM_Mug", True, True)
svc.set_asset_materials("/Game/Props/SM_Mug", "/Game/M_Ceramic,/Game/M_Coffee")
  • get_mesh_info(h).material_ids is the check that a part actually took its id — do it before saving, not after wondering why the asset has one slot.
  • A part built in another handle keeps its ids through append_mesh, so either way works.
  • To give an id to something already merged in, select it and set it: svc.select_connected(h, "shade", point_on_it) then svc.set_material_id(h, "shade", 1).
  • Without set_asset_materials every slot renders as the default grey — a mesh with correct ids still looks untextured in the viewport.

Return types

  • FModelingResult: success, message, handle, triangle_count, vertex_count, asset_path.
  • FModelingMeshInfo (get_mesh_info): handle, triangle_count, vertex_count, is_closed, open_border_edges, connected_components, bounds_min, bounds_max, surface_area, volume, num_uv_layers, has_vertex_colors, material_ids.
  • FModelingSplitResult (split_by_components): success, handles.

Lofted solids (wings, fins, hulls)

append_loft(h, transform, profile, frames, material_id) sweeps a closed 2D profile through a list of frames, caps both ends, and guarantees an outward-facing closed solid (it checks the enclosed volume and flips when the sweep came out inside-out). Frame semantics:

  • The profile lies in each frame's local YZ plane: profile X runs along the frame's Y axis, profile Y along its Z axis.
  • The frame's scale multiplies the profile, axis for axis: scale.Y scales profile X, scale.Z scales profile Y (scale.X does nothing). So with identity-rotation frames marching along world X, a frame scale of (1, half_width, half_height) gives you a section that many cm wide and tall — which makes a hull or fuselage a table of (x, z, half_width, half_height) rows and nothing else:
    python
    prof = [V2(-1,-0.9), V2(-0.55,-1), V2(0.55,-1), V2(1,-0.9), V2(1,0.72), V2(0.6,1), V2(-0.6,1), V2(-1,0.72)]
    sections = [(-980,200,16,18), (-300,178,50,70), (60,188,64,96), (500,196,54,66), (760,176,14,15)]
    frames = [T(V(x, 0, z), R(0,0,0), V(1.0, w, h)) for (x, z, w, h) in sections]
    svc.append_loft(h, T(), prof, frames, 0)
  • Frames are positioned along the path; two frames make a straight tapered section.
  • Verify the mapping with a unit square through two frames and read get_mesh_info bounds before committing to a complex shape — it costs one call and saves rebuilding a hull.

A wing running out along +Y with its chord toward −X and 6 % thickness:

python
airfoil = [unreal.Vector2D(x, y) for x, y in ((0,0),(0.05,0.03),(0.3,0.06),(0.7,0.04),(1,0),(0.7,-0.03),(0.3,-0.04),(0.05,-0.02))]
frames = [unreal.Transform(unreal.Vector(880, 100, 0), unreal.Rotator(0, 0, 90), unreal.Vector(480, 480, 480)),   # root: LE at x=880, chord 480
          unreal.Transform(unreal.Vector(600, 640, 0), unreal.Rotator(0, 0, 90), unreal.Vector(160, 160, 160))]   # tip
svc.append_loft(h, unreal.Transform(), airfoil, frames, 0)

ensure_outward(h) does the same volume check on any closed part you built another way (revolves, raw sweeps) — run it before self_union, which silently discards inside-out parts as negative space. Apply this to each separate part before appending it to an assembly, especially after reflecting polygon coordinates. The assembly's total signed volume can be positive while a smaller component is still inside-out; a single check on the combined handle will miss that component.

Rigging control surfaces (rudders, flaps, canopies, turrets)

Bones and skin weights are authored straight on the session mesh; saving with an empty skeleton path creates the Skeleton asset for you.

Plan the components before you model. select_connected is the only selection that grabs a moving part exactly, so build each part that will get its own bone in its own handle, self_union it there, and only then append_mesh it into the assembly. Appending never welds parts together, so the result is one mesh whose pieces are still separately selectable — no cutting required:

python
tower = svc.create_mesh().handle; ...; svc.self_union(tower)   # stays on the root bone
cap   = svc.create_mesh().handle; ...; svc.self_union(cap)     # will yaw
sails = svc.create_mesh().handle; ...; svc.self_union(sails)   # will spin
h = svc.create_mesh().handle
for part in (tower, cap, sails):
    svc.append_mesh(h, part, unreal.Transform()); svc.release_mesh(part)
assert svc.get_mesh_info(h).connected_components == 3           # check before rigging

Check connected_components matches the number of pieces you expect before rigging — a piece that merged into its neighbour, or split into two, is far cheaper to fix now than after binding. Parts that merely touch do not union: overlap them by a few cm, or they stay separate and a "solid" assembly comes apart. A box selection is the fallback when two pieces genuinely are one component, but it will also catch anything else inside the box (a shaft passing through a hub), and those stray triangles tear when the bone moves.

  1. Isolate each moving piece as its own connected component — either built separately as above, or cut free with a through-slot along the hinge line and at both ends (boolean Subtract with thin boxes).
  2. Grab it with select_connected(h, "flap_L", point_on_the_flap) — no radius to tune, it takes the whole piece nearest the point. selection_bounds then gives you the hinge line (the piece's forward edge).
  3. Define the hierarchy with create_bones(h, [ModelingBoneDef, ...]): the first bone is the root, every other one names a parent listed earlier. Transforms are in mesh space; point each bone's X axis along its hinge so the surface deflects by rolling the bone (a swept hinge just needs the right yaw). Everything starts bound to the root.
  4. Bind each piece: bind_selection_to_bone(h, "flap_L", "flap_L", 1.0).
  5. Verify with list_bones(h) — every control bone should report the vertex count of its piece and the root the rest; a bone with 0 vertices means the selection missed.
  6. Save: save_mesh_to_skeletal_mesh(h, "/Game/Vehicles/SK_Jet", "", True, True) creates SK_Jet plus SK_Jet_Skeleton; then set_asset_materials("/Game/Vehicles/SK_Jet", "/Game/M_Paint,/Game/M_Glass") fills the material slots (one slot per material ID).
python
B = unreal.ModelingBoneDef
hinge_yaw = 0.0   # yaw of the hinge line in the XY plane
svc.create_bones(h, [
    B(name="root"),
    B(name="flap_L", parent_name="root", transform=unreal.Transform(unreal.Vector(534, 100, 0), unreal.Rotator(0, 0, 90 + hinge_yaw), unreal.Vector(1, 1, 1))),
])

Animate the result like any skeletal mesh — an AnimSequence keyed on the control bones (see the animation skill), a Control Rig, or SetBoneRotationByName on a PoseableMeshComponent for a quick check in a level.

For continuous or variable-driven motion (a rotor, a windmill sail, a turret) the usual answer is an Anim Blueprint driving the bone directly, with no animation asset at all: Local Space Ref Pose → Local To Component → one Modify Bone per control bone → Component To Local → Output, and an EventGraph that accumulates the angle on Event Blueprint Update Animation. If VibeUE is installed, its animation-blueprint skill has the whole recipe, including the trap that a Modify Bone node ignores its Rotation pin until you set rotation_mode to additive in component space.

Repairing skin weights (clothing that follows the wrong bone)

The classic failure on a transferred garment: a collar rides up with the head, a hem is glued to one thigh. The cause is weight on bones that shouldn't own the region, and the fix is four calls — no Blender round-trip:

python
h = svc.load_mesh_from_skeletal_mesh("/Game/.../SK_Jacket").handle
n = svc.select_by_bone_weight(h, "collar", "head,neck_02", 0.15)   # the vertices those bones drag
print(svc.selection_bounds(h, "collar"))                           # sanity: is this really the collar?
svc.scale_bone_weights(h, "collar", "head,neck_02", 0.25, "spine_05")  # keep 25%, rest -> spine_05
svc.smooth_selection_bone_weights(h, "collar", 3, 0.5)             # feather the seam
print(svc.inspect_bone_weights(h, "collar").message)               # per-bone verts/avg/max + sums
svc.save_mesh_to_skeletal_mesh(h, "/Game/.../SK_Jacket", "<its skeleton path>")
  • select_by_bone_weight builds the region from the weights themselves — more reliable than a box when the garment's geometry is irregular. Intersect with select_in_box output via expand_contract_selection/invert_selection when only part of a bone's territory is wrong.
  • scale_bone_weights(h, sel, bones, scale, receiver): scale 0 removes the influence; with no receiver the freed weight goes to each vertex's strongest other influence. Vertices bound only to the listed bones are skipped unless a receiver is named — read the message.
  • smooth_selection_bone_weights is a Laplacian pass over the selection: run it whenever a repair or a rigid bind_selection_to_bone leaves a visible cliff at the boundary.
  • inspect_bone_weights(h, sel="") is the audit: influencing bones, per-bone average/max, weight sums (should be 1.0 ± quantization), max influences. Check it before saving, and verify the pose in the animation skill afterwards — bad weights are invisible in the ref pose.

Texturing pipeline (UVs you control, masks you can make, pixels you can draw)

Auto-unwraps (auto_uv) are fine for baking AO, useless for markings: hundreds of seams and uneven texel density. For anything an artist would paint, build the islands yourself and verify them.

  1. Define islands. Assign a polygroup per panel/region: compute_polygroups(h, "Angle", 30) for hard-surface parts, then override with selections — select_in_box / select_by_normal_angle / select_connected + set_polygroup(h, sel, -1) (a new group) so a wing top, a fuselage side or a whole rudder is one island.
  2. Unwrap each island conformally: recompute_uvs(h, 0, "Polygroups", "SpectralConformal"). Big round shapes (fuselage) can instead take project_uv(h, "Cylinder", transform, 0, sel).
  3. Pack — layout_uv(h, 0, "Repack", "", 4096) for one texture set, or pack_uv_per_material(h, 0, 4096) so every material slot (fuselage / wings / details) fills its own 0–1 range and gets its own 4K.
  4. Verify with get_uv_stats(h): islands, coverage, overlap_fraction (must be ~0 unless you packed per material), num_unset_triangles (must be 0) and texels_per_cm_at_1k. Fix before baking. world_to_uv(h, point) tells you where a spot on the mesh lands on the texture.
  5. Masks without painting. Select regions on the mesh, set_vertex_color(h, sel, color) per channel (R walkways, G stripes, B dirt…) and bake with bake_textures(h, h, "VertexColor", …). "MaterialID" bakes a per-slot mask for free; "UVShell" draws the island outlines — panel lines when islands are panels; "Height" and the normals/AO/curvature bakes remain.
  6. Pixels. create_noise_texture(path, 2048, 2048, cells, octaves) for tileable grunge/wear; draw_on_texture(path, "Line|Dots|Rect|Fill", uv_points, color, thickness_px, spacing_px) to draw rivet rows, stripes and blocks straight into an 8-bit texture in UV space (use world_to_uv to place them); import_texture(file, path, srgb, "Default|Normalmap|Masks|Grayscale") for anything made elsewhere (a PolyHaven PBR set downloaded with urllib in the same Python script works). bake_texture_transfer(target, source, "T_A,T_B", …) re-projects textures from one unwrap onto another (after re-unwrapping, or from a detail mesh).
  7. Geometry detail for normal maps. Build it on a copy: append_mesh_along_polyline(h, rivet, points, spacing) for fastener rows, append_mesh_at_transforms(h, bolt, sample_surface_points(...)) for scatter, cut_groove_along_polyline(h, points, width, depth) for recessed panel lines — then bake_textures(game_mesh, detail_mesh, "TangentNormal,AmbientOcclusion", 4096, …).

Crisp markings (roundels, numbers) are still best as decals: set_num_uv_layers(h, 2) + project_uv(h, "Planar", transform, 1, sel) gives a clamped UV1 the material samples a decal through.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Modeling faz?

Create and edit static/skeletal mesh geometry programmatically (ModelingService) — primitives, booleans, extrude/inset/bevel on selections, remesh/simplify/subdivide, deform, voxel ops, auto-UV, normals, repair, collision, LODs, bake, and saving to assets. Use when the user asks to build, kitbash, block out, fix, clean up, or generate 3D meshes in the editor without Blender.

Por que usar Modeling no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Modeling é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Modeling no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kevinpbuckley/Vibe3D/tree/main/Content/Skills/modeling. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Modeling?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Modeling?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Modeling com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Modeling é gratuita?

Sim. A habilidade é publicada no GitHub por kevinpbuckley sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇