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 […]
Read More
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 […]
Read More
So it’s a bit of an odd one, but I needed to be able to calculate the RGB value of the colour at certain points on the mesh, and at first this seemed a bit tricky, but using the cloestPointOnMesh node and the colorAtPoint command I was able to use a locator and easily connect […]
Read More
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" […]
Read More