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
# 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. |
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
# Command for duplicating the selected morph. | |
# Tim Crowson, June 2015 | |
import lx | |
import lxu | |
import lxifc | |
import modo | |
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 lx | |
import time | |
dialog_svc = lx.service.StdDialog() | |
mymonitor = lx.object.Monitor(dialog_svc.MonitorAllocate('Some task or other ...')) | |
mymonitor.Initialize(10) | |
for x in range(10): | |
mymonitor.Increment(1) | |
time.sleep(2) |
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
# python | |
''' | |
This function searches the current Modo scene and returns all items of | |
the specified type as a list of Python objects. | |
The function takes one or more arguments as strings or integers, which are the types of items you're after. | |
To ensure forward compatibility we'll use the symbol for the item type we need. | |
To see the full list of item type symbols, visit the following URL: |
NewerOlder