Skip to content

Instantly share code, notes, and snippets.

@gregtemp
Created June 6, 2014 06:08
Show Gist options
  • Save gregtemp/383044ae1f8f1b766b05 to your computer and use it in GitHub Desktop.
Save gregtemp/383044ae1f8f1b766b05 to your computer and use it in GitHub Desktop.
The magic "pass dat vector" script for runtime before dynamics expression - Maya
if (particleShape1.particleId == 0) {
vector $myv = particleShape1.position;
string $myPy = "myOtherFunc(" + $myv.x + "," + $myv.y + "," + $myv.z +")";
python($myPy);
}
@gregtemp
Copy link
Author

gregtemp commented Jun 6, 2014

yes i know it's obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment