This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modo | |
selected = modo.Mesh() | |
rgbaMap = selected.geometry.vmaps.rgbaMaps[0] | |
selectedPolygon = selected.geometry.polygons.selected[0] | |
def GetAverageRGB(vertices): | |
average = (0,0,0) | |
numVertices = len(vertices) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modo | |
from mlFoundation import mlMath | |
meshes = modo.Scene().selectedByType('mesh') | |
source = meshes[0] | |
target = meshes[1] | |
indexToPosition = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modo | |
from mlFoundation import mlMath | |
mesh = modo.Mesh() | |
uvmap = mesh.geometry.vmaps.uvMaps[1] | |
morphMap = mesh.geometry.vmaps.morphMaps[0] | |
with mesh.geometry as geo: | |
for vertex in geo.vertices: | |
yPos = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modo | |
from mlFoundation import mlMath | |
mesh = modo.Mesh() | |
uvmap = mesh.geometry.vmaps.uvMaps[1] | |
bb = mlMath.BoundingBox3D() | |
for vertex in mesh.geometry.vertices.selected: | |
bb.EncapsulatePoint(vertex.position) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/* | |
#================================================================================================ | |
# Part of the ModoMLTools for The Foundry's Modo. | |
# Author: Myles Lambert : [email protected] | |
# Description: Freezes rotation whilst also updating vertex normals. | |
#================================================================================================ | |
#*/ | |
import lx, lxifc, lxu | |
import modo |