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 | |
def GetImageMaps (self, clip_obj, getIdents=True): | |
images = [] | |
if clip == None: | |
return [] | |
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
import lx | |
import lxu.select | |
def GetInfluences (effector): | |
''' | |
Takes an effector input and returns a list of all | |
connected influence items. | |
''' | |
influences = [] |
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
#!/usr/bin/env python | |
''' | |
Demonstrates how to setup a simple popup menu populated using dynamic values. | |
This will search a directory for files and list all of the files inside the | |
popup. | |
As notifiers are currently unsupported in modo 701 SP2, we can't force the | |
popup to update when the directory contents changes. So for now, it'll only |
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
#!/usr/bin/env python | |
''' | |
This sample Python plugin demonstrates how to use notifiers in Python. | |
To use, embed the command in a form and change item selection, the command | |
should update. | |
''' |
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 | |
''' | |
Hello World! | |
This example demonstrates the very basics needed for a command. Firing | |
the command prints "Hello World!" to the event log. The command includes | |
enable and disable states, controlled by the selection. If an item | |
is selected, the command will be enabled, if not, it won't be. |
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 | |
''' | |
Query Command | |
Demonstrates how to write an executable and queryable command. | |
This will query a channel value on the selected items, | |
inputting a value will update the channel and querying the | |
value will show the current value of the channel. The command |
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 | |
hstSvc = lx.service.Host () | |
hstSvc.SpawnForTagsOnly () | |
allPackages = [] | |
containsPackages = [] | |
for i in range (hstSvc.NumServers (lx.symbol.a_PACKAGE)): | |
factory = hstSvc.ServerByIndex (lx.symbol.a_PACKAGE, i) |
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 plugin example adds a new package that can be added to | |
an existing item, adding a float channel called "customData". | |
Essentially, it's just implementing a custom item. But by not | |
specifying a supertype, it becomes a generic item that can be | |
added to an existing item to extend their functionality. | |
''' |
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 | |
''' | |
Class and functions for working with groups inside of modo. | |
''' | |
import lx | |
class Group: | |
def __init__ (self, group): |
OlderNewer