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 lxu.select | |
scn_svc = lx.service.Scene() | |
def IsItAMask(item): | |
if scn_svc.ItemTypeName(scn_svc.ItemTypeSuper(item.Type())) == lx.symbol.sITYPE_TEXTURELAYER: | |
scene = item.Context() | |
graph = lx.object.ItemGraph(scene.GraphLookup(lx.symbol.sGRAPH_SHADELOC)) | |
if graph.RevCount(item) > 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
/* | |
matchXfrm.cpp | |
Sample plugin to demonstrate a simple command that matches | |
position, rotation and scale between multiple selected items. | |
This command operates slightly differently to the built in | |
match.position, rotation, scale commands. The built in commands | |
will average out the transform if multiple items are selected, |
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
/* | |
This snippet is to demonstrate how to write to a matrix channel | |
in modo from an eval modifier. This is the correct way to write | |
to a matrix. This does assume that you have set the matrix channel | |
you want to drive as a channel for the modifier, using something like: | |
eval.AddChan(item_loc, LXsICHAN_XFRMCORE_WPOSMATRIX, LXfECHAN_WRITE); | |
in your modifier constructor. This method will drive the matrix | |
channel directly, so instead of using the local channels to calculate | |
the world SRT, it'll use the values the modifier provides it with. | |
*/ |
NewerOlder