Skip to content

Instantly share code, notes, and snippets.

@GainDeveloper
GainDeveloper / mlFlattenYStoreV.py
Created Jan 3, 2021
Collapses selected in vertices in Y axis and stores the offset in the V component of the second uv channel.
View mlFlattenYStoreV.py
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)
@GainDeveloper
GainDeveloper / mlFreezeNormals.py
Created Oct 6, 2020
Freezes scale or rotations whilst maintaining vertex normals. Place in lxserv folder.
View mlFreezeNormals.py
#/*
#================================================================================================
# Part of the ModoMLTools for The Foundry's Modo.
# Author: Myles Lambert : myleslambert18@gmail.com
# Description: Freezes rotation whilst also updating vertex normals.
#================================================================================================
#*/
import lx, lxifc, lxu
import modo