MAYA

Hey, So I wanted to visualise a field in maya, as I needed to know what it was looking like, and I found a pretty simple way to do it. Create a 3D fluid container: Dynamics > Fluid Effects > Create 3D Container Connect your field to the container: Window > Relationship Editors > Dynamic […]

Hi there, So this is a handy little script if you want to pass a python list into a mel command in your code, say you have a list of objects that you now wat to pass in eg: [u'pCube1', u'pCube2', u'pCube3', u'pCube4', u'pCube5', u'pCube6', u'pCube7', u'pCube8', u'pCube9'] , you’re going to need to convert […]

So I ended up with a few issues when attempting to set the keyframe on an object using the layout specified in the python command, I was trying to do something like: cmds.setKeyframe("pCube1", value=True, attribute="visibility") However as I was using instancing, this would also keyframe the visibility on the pCubeShape1 which I didn’t want, even […]

So I found a great little script here that will randomise the vertex positions in all the axis depending on how much you want it to, check it out below! $mySelection = `ls- sl`; $myVerts = `getVerts`; // this command grabs all the vertices of selected objects and put into a string array for ($vert […]

One of the great bugs in maya is that if you want to use an image sequence to use within any of its’ nodes, it manages to completely negate the effect of anything other than the first frame. To fix this just create an expression in your scene and enter this code in to it, […]

So I found this to be pretty useful, I used it to help visualise the direction of the wind I was pumping in to another variable, but it could be used for countless other things, just select the two objects you want to draw a curve between and run this MEL script. { string $sel[] […]

Here is a little script I found from here, that allows you to query the amount of points (or cv’s) on a curve, where curveShape1 is the name of the curve you have created. string $curve = "curveShape1"; int $numSpans = `getAttr ( $curve + ".spans" )`; int $degree = `getAttr ( $curve + ".degree" […]