Skip to content

Instantly share code, notes, and snippets.

@tcrowson
tcrowson / morphToMesh.py
Last active April 11, 2018 20:56
Modo 901 command for freezing a morph to a new mesh.
# Command for freezing a morph to a new mesh.
# 1. Select a morph map
# 2. run morph.freezeToMesh
# 3. A new mesh bearing the name of the morph map will be created, with the frozen morph shape in it.
import lx
import lxu
import lxifc
import modo
@tcrowson
tcrowson / morphDuplicate.py
Last active October 1, 2015 14:59
Modo 901 command for duplicating the selected morph map
# Command for duplicating the selected morph.
# Tim Crowson, June 2015
import lx
import lxu
import lxifc
import modo
@tcrowson
tcrowson / ConvertToRedshiftProxy.py
Last active October 2, 2015 19:39
Softimage script for converting a selection to Redshift Proxy, and re-importing it into the scene with some customizations.
# ConvertToRedshiftProxy
#
# - Adds a new command to the context menu for objects in the Scene Explorer: 'Convert to Redshift Proxy'
#
# FEATURES
# - Exports the selected items to a Redshift Proxy, then re-imports the result back into the scene.
# - Optionally maintains parenting, but only to the parent of the first selected item.
# - Appends a suffix (defaults to '_RSPROXY') to the name of the proxy mesh, to distinguish it from other polymeshes.
# - Locks the Construction stack on the proxy mesh to prevent it being frozen by accident.
# - Optionally lets you specify a display mesh for GL previewing.
@tcrowson
tcrowson / GroupMeshesByModel.py
Created November 10, 2015 21:15
Softimage - For selected model nulls, finds renderable items and groups them according to their source models.
# Group Meshes By Model
# DESCRIPTION
# - Adds a new command, GroupMeshesByModel(), which can be called from a key assignment or shelf button.
# - For selected model nulls, finds renderable items and groups them according to their source models.
# - Groups the following: meshes, pointclouds, instances, and hair.
# INSTALLATION
# This is a self-installing plugin, so place it in your user scripts
# or similar folder in the workgroup of your choosing.