— Sphere Intersect in Maya/MEL
Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis.
more →
Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis.
mel notepad with various code snippets
process selection list
string $select[] = ls -sl;
for ( $node in $select ) // process each
{
/* ... */
}
if node exists
string $node = "object";
if ( objExists $node )
{
// The node exists
}
Strip component
string $node = "pCube1.f[2]";
string $no_component = match "^[^\.]*" $node;
// Result: "pCube1" //