Python Example – Pickling Things into MySQL Databases

Sometimes you need to store something for later while using Python. For large cases, you might even need a database. In this example, I’ll show you how to pickle a Python object and store it into a MySQL database.

Pickling in Python is a way of storing sometimes complex data structures into a binary representation that can be unpickled later to get back the same data structure. For instance, a list of nested lists will pickle and unpickle into the … Read the rest

Maya to After Effects Export

There is a new script in the code section. It is another python for Maya script. This script makes it possible (and super easy) to export your Maya scene to After Effects to add in some composite elements matched to the 3D scene. It bakes out the cameras and objects of your choice, placing locator nulls for each object. Also, it will scale the entire scene up by an amount that you choose to make it much easier to edit … Read the rest

New Script: keyRandomizer

Just posted a new script in the code section. You might have to refresh the blog to get it to show up in that menu, though.

Basically, it’s a python script for Maya that will randomize keyframe values and frames for the selected objects. Very useful if you have a lot of objects doing the same animation and you want to change it up a little so it’s not so mechanical.… Read the rest

Maya Render Layer Bug

I’m sure you’ve had this, multiple render layers, different shaders on each. Eventually, it will break. Especially if you’re assigning materials on a per-face basis.

It’s better to not do that. But, whenever you have a scene that breaks and your renders are unpredictable, you can use this to fix it.

fixRenderLayerOutAdjustmentErrors;

Run that MEL command. That should fix some of the errors. Sometimes, it will revert whenever you save and close the file, but you can run it again … Read the rest

Cameron Leger 2.0

Quite the update.

For one, www.cameronleger.com is now completely different. I have updated it to allow me to much easier add new content to it later on, and it looks a bit different.

This blog is now completely different.

Check out my demo reel. You can find it on my new website or watch it at the end of this post.

There’s a new navigation feature at the top of this site. It’s all outside links to my other information, … Read the rest

2001: A Space Odyssey

And what it would have been like if HAL was run using Linux:

Dave: Open the pod bay doors, HAL.

HAL: I’m sorry Dave, I’m afraid I can’t do that.

Dave: sudo open the pod bay doors HAL.

HAL: Opened.

 

Rather than:

Dave: Open the pod bay doors, HAL.

HAL: I’m sorry Dave, I’m afraid I can’t do that.

Dave: What’s the problem?

HAL: I think you know what the problem is just as well as I do.

 … Read the rest

C&H Short

Here’s the latest video I’ve been working on. It’s featuring the characters from the popular online comic site, Cyanide & Happiness. It’s kind of part of a series, so expect more of these animations. The only thing is, I’ll be pretty busy for a while so there might be some other stuff in between the next release. The usual, everything done in Maya, rendered with 3Delight.

httpvh://www.youtube.com/watch?v=T82-gJING-IRead the rest