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
#include <lxsdk/lx_mesh.hpp> | |
#include <lxsdk/lx_pmodel.hpp> | |
#include <lxsdk/lx_seltypes.hpp> | |
#include <lxsdk/lx_thread.hpp> | |
#include <lxsdk/lxu_attributes.hpp> | |
#define SERVER_NAME "pmodel.selectEveryOther" | |
/* | |
* The Selection Operation is evaluated in parallel from multiple threads. As |
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
#include <lxsdk/lx_mesh.hpp> | |
#include <lxsdk/lx_pmodel.hpp> | |
#include <lxsdk/lx_seltypes.hpp> | |
#include <lxsdk/lxu_attributes.hpp> | |
#define SERVER_NAME "pmodel.createPlane" | |
#define ATTRs_SIZE "size" | |
#define ATTRi_SIZE 0 | |
class MeshOp : |
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
#include <lxsdk/lx_mesh.hpp> | |
#include <lxsdk/lx_pmodel.hpp> | |
#include <lxsdk/lx_seltypes.hpp> | |
#include <lxsdk/lxu_attributes.hpp> | |
#define SERVER_NAME "pmodel.createPlane" | |
#define ATTRs_SIZE "size" | |
#define ATTRi_SIZE 0 | |
class MeshOp : |
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 | |
import lx | |
import lxu.command | |
import modo | |
class Command (lxu.command.BasicCommand): | |
def __init__ (self): | |
lxu.command.BasicCommand.__init__ (self) |
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
Instance * | |
getInstance ( | |
ILxUnknownID item) | |
{ | |
CLxLoc_PackageInstance pkgInstance (item); | |
CLxSpawner <Instance> spawn ("myInstance"); | |
if (pkgInstance.test ()) | |
return spawn.Cast (pkgInstance); | |
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
/* | |
* | |
* modifierSample.cpp | |
* | |
* This sample plugin demonstrates how to create a very simple and pointless | |
* modifier. The modifier attaches to every light in the scene and sets the | |
* light radiance value to the distance from the center of the world. | |
* | |
*/ |
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
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
#python | |
''' | |
Notifier Command | |
Demonstrates how to write an executable and queryable command. | |
The difference is that this command will listen for state changes | |
in a scene. If the selection changes, then the command will check | |
its enable/disable state and force any form it's embedded into |