Archive by Author

UV Scatter 1.4 released

The next version of the UV Scatter plugin has just been released. The surface orientation bug as pointed out in the comments section has been fixed. A new feature to hide objects invisible to the camera has been added in order to improve playback of heavy scenes. A debug mode was added for anyone who wants to play with the code of the plugin. To activate it, set debugMode to True in the debug.py file. I’ve also modularized the code and added a meta node. The meta node allows easy access through the messages connection to all the LOD groups created by the scatter plugin.

Getting back onto scatter script

Just a quick message to say after a brief hiatus from working on the scatter script I am going to get development going on it again 🙂
I intend to:
Look into the issues with orienting of objects to normals.
Add camera culling
Add a meta node for easy access to the lodGroups from user scripts
Look into 2012 support (I am still trying to find someone with a copy so i can sit down and fix it)

Image Processing Practise: Finding Edges with Mean-Square-Error

In our second week of class, we covered the topic of JPEG lossless compression, and the prediction technique it employs to reduce the file size.

The technique is actually very simple, it takes the the current pixel f(x) and compares it to the pixel to its right f(x+1), and calculates the mean square error: the square root of (f(x+1) – f(x))^2 (it seems to me the process of squaring and then finding the square root is to make sure the value returned is always positive, so one could reasonably say something along the lines of Mathf.Abs(colour2-colour1) – if my reasoning is wrong please let me know!).

Differences between MAYA_SCRIPT_PATH environment variable in python on a mac and windows system

Using Maya environment variables in your python scripts is a very convenient way to access files that your scripts need, such as UI files, or xml settings files etc. The basic principle is: Get a string of all the directories in the environment variable, split them by the separator, and then search each directory in the list for the file you are look for:

Recenter Frozen Objects 0.1

Quickly recenter objects with frozen transforms back onto the origin. Download re-center plugin 0.1 Installation Copy reCenter.py into your plugins directory Activate the plugin in the maya plugin manager window Usage Place the pivots of the objects you want to re-align in a logical position (usually at the center or base of the object). This […]

css.php