Showing posts with label expression. Show all posts
Showing posts with label expression. Show all posts

August 13, 2009

Script to Open Particle Expression

Save this script to shelf or bind it to a key shortcut.
string $ls[] = `ls -sl`;
string $paShapes[\] = `pickWalk -d down $ls[0\]`;
expressionEditor "" $paShapes[0\] "";
--

Create Particle Stickiness

This is quite simple, in runtime expression:
if (waterShape1.collisionGeometryIndex != -1)
waterShape1.velocity -= waterShape1.collisionNormal * $sticky;