This file contains hidden or 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 time | |
import lx | |
import lxu.select | |
def output(command): | |
'''introspect methods and classes''' | |
lx.out('$$$$$$$$$ dir $$$$$$$$') | |
This file contains hidden or 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 | |
import math | |
class vector(object): | |
"""vector([x,y,z]) -> create a vector object in 3D space.""" | |
def __init__(self, data): | |
self.data = data | |
if len(self.data) != 3: | |
raise ValueError("Expecting a 3D vector -> [x,y,z]") |
This file contains hidden or 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 | |
##--------------------------------------------## | |
# | |
# Author Bjoern Siegert 2014-01-27 | |
# | |
# Slect a material by name if it is | |
# in the scene. | |
# Name is defined by an argument just after | |
# the script name |
This file contains hidden or 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 | |
## lx layerservice ## | |
layerService = lx.Service("layerservice") | |
layerService.select("layers", "main") # select active mesh layer | |
nVmaps = layerService.query("vmap.N") # get vmap number | |
# walk through the vmaps and print the names of it if the type is edgepick | |
for vmap in xrange(nVmaps): |
NewerOlder