Город МОСКОВСКИЙ
00:06:17

Устанавка скрипта в Maya

Аватар
Питоновская реформа программирования
Просмотры:
179
Дата загрузки:
02.12.2023 14:33
Длительность:
00:06:17
Категория:
Видеоигры

Описание

Содержимое скриптов:
Откуда копируем геометрию:

from maya import cmds
import maya.api.OpenMaya as om
# get the mesh vertex position
sel = cmds.ls(sl=True)
# get the dag path
selection_list = om.MSelectionList ()
selection_list.add(sel[0])
dag_path = selection_list.getDagPath (0)
# creating Mfn Mesh
mfn_mesh = om.MFnMesh(dag_path)
points = mfn_mesh.getPoints()



Куда копируем геометрию:

from maya import cmds
import maya.api.OpenMaya as om
# set the mesh vertex position
sel = cmds.ls(sl=True)
# get the dag path
selection_list = om.MSelectionList ()
selection_list.add(sel[0])
dag_path = selection_list.getDagPath (0)
# creating Mfn Mesh
mfn_mesh = om.MFnMesh(dag_path)
mfn_mesh.setPoints(points)

Трек: https://tunetank.com/track/1217-rock-and-drive

Рекомендуемые видео