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
#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
#!/usr/bin/env python | |
''' | |
This script when attached to a breakpoint will continue lldb if the provided | |
function doesn't appear in the current backtrace. | |
To use this script, add a file called .lldbinit to your home directory, | |
with the following line: | |
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 demonstrates how to evaluate a particle source for it's particles. | |
* By default, only position, transform and ID are evaluated, however it | |
* could easily be extended to support other types. | |
* | |
* To evaluate particles, you must provide a TriangleSoup to the Tableau, | |
* allowing it populate your soup with the particle data. This is very | |
* similar to reading surfaces, but we only care about vertex data, not | |
* polygons. | |
* |
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 example demonstrates how to manually implement a tool operation | |
* item. | |
* | |
*/ | |
#include <lxsdk/lx_mesh.hpp> | |
#include <lxsdk/lx_tool.hpp> | |
#include <lxsdk/lx_toolui.hpp> | |
#include <lxsdk/lx_vector.hpp> |
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 lxu.select | |
class ReferencedItems: | |
def __init__(self, scene): | |
self.mScene = lx.object.Scene(scene) | |
self.mSceneFilename = self.mScene.Filename() | |
self.mItems = [] | |
def AddItem(self, item): | |
print item |
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 sample script demonstrates the basics for connecting to the preview | |
socket, setting the resolution, and the pixel format, and reading back a | |
floating point buffer of the image. | |
To test it, launch modo, and execute the command: | |
telnet.listen port:5678 raw:true | |
Then run the following in an external Python client. | |
''' |
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 | |
''' | |
Demonstrates how to list the kits installed in Modo, and query the version | |
numbers. This mostly is a wrapper for the kit.version command. | |
''' | |
import lx |