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 pymel.core as pm | |
def getCurves(tstep, deg=3): | |
"""Generate cv curves from particle paths. | |
Sample the path every tstep in the current time range and generate curve with degree deg. | |
Before executing, select particle in object mode (i.e. curves from all points) or component mode (i.e. curves from selected points).""" | |
global curvesData #FIX! I hate this global variable... find other way to collect data | |
curvesData = {} | |
tmin = int(pm.playbackOptions(q=1, min=1)) | |
tmax = int(pm.playbackOptions(q=1, max=1)) |
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
""" | |
*** Cache Cloud *** | |
Version 0.9.0 | |
by Daniel Vasquez | |
Updated: August 12, 2011 | |
Email: dan@heylight.com | |
Web: heylight.com | |
Description: | |
Python script that creates Maya Particle Disk Cache (PDC) files from a sequence of point cloud data, and also gives you the choice of importing a single point cloud. It could be useful with all the open source data being released from Kinect hacks or 3D scanners. You can start by playing around with Radiohead's House Of Cards data: http://code.google.com/p/radiohead/downloads/list |
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 pymel.core as pm | |
def chDir(object, *filtr): | |
"""Check methods: Returns a list of methods bound to the instanced object. Filter search with string(s) filtr.""" | |
if not filtr: | |
return [meth for meth in dir(object)] | |
else: | |
return [meth for string in filtr for meth in dir(object) if string in meth] | |
NewerOlder