Technical Notes

Screen_shot_2011-09-26_at_12
I recently started documenting technical issues that I encounter or things that I learn during my Maya scripting projects, and decided to share the notes with the public. I hope others will find it useful when troubleshooting. Click here to see the docs.

Posted by Daniel Vasquez
 

Curve Vectors Tool

This script finds a vector from a curve. I needed it for orienting a follice to the same direction as the curve's base, which corresponds to the first two cvs. After writing it, I realized that using edit points (ep) or curve points (u) would give a more accurate direction. Good enough for now, but will rewrite it.

UPDATE: Turns out that I could just use the pymel function tangent to accomplish the same thing (i.e. finding the tangent at a given point on a curve). For example, to find the tangent at parameter 0, which is the start of the curve, execute curv.tangent(0)

Posted by Daniel Vasquez
 

Hair From Particle Paths

(download)

I got hooked on my last script (see previous post) and decided to extend it by creating a hair system out of the particle paths. I'll post the script when it's working more smoothly, but here are a couple screencaps.

Posted by Daniel Vasquez
 

Curves From Particle Paths

(download)

Wrote a little script today. It generates cv curves from the path of a particle object or individual particles. Click here to see the code and a demo.

Posted by Daniel Vasquez