Wednesday, May 28, 2008

I can ride my bike with no handle bars

Handlebards is a cool song I have been listening lately from a band named Flobots.

It's so cool not only the music or the Trumpet sound (for me it sounds like a trumpet) but their lyrics are loaded with a strong message, not the usual blatant lyrics and the video clip enforces the meaning of the song. Please listen and watch it!

Saturday, May 17, 2008

Spherical Helix Plugin

This plugin for Autodesk Maya, will create a Spherical Helix made of a Nurbs curve.

The usage for this plugin is:

SphereHelix -r -h -n

-r: The sphere maximum radius. By default, radius is 1
-h: The curve height from y=0. By default, height is 1
-n: The name of the Nurbs curve. By default curve name is SphereHelix#,
where # is a consecutive number for existing curves.

To install plugin, just download it, unzip it, copy .mll to \bin\plug-ins and load it from the plug-in manager.

Following images were created with this plugin using different settings:



Find out the plugin here:

[Plugin Download]

Thursday, May 01, 2008

Maya 2008 Plugin development - Part 1

Building plugins for Maya allows both Game Developers and Artist to customize Maya and speed up the workflow.

So far, doing some reading and research, I found there are two ways to develop Maya plugins: Using a traditional compiled VC++ .mll plugin or by using Python.

I will start this research by building a simple plugin using Visual Studio 2005 (Visual Studio 8)

1. Start by installing the Plugin Wizard

First step is to setup the Visual Studio environment. Fortunately, Maya includes a Plugin Wizard for Visual Studio 8 (aka Visual Studio 2005) so you can create them easily.
Plugin wizard is found in the following location:

\devkit\PluginWizard

Of course, you can follow the readme instructions, but there's a little change you should do in order to have the plugin working.

a. Unzip the MayaPluginWizard2.0.zip file

a.1 This is the new Step:

Edit the MayaPluginWizard.vsz file, and change the following line:
Wizard=VsWizard.VsWizardEngine.7.1
to
Wizard=VsWizard.VsWizardEngine.8.0
(For Some reason wizard developers forgot to update this for Visual studio 2005 Developers)


b. Copy the following files:

MayaPluginWizard.vsdir MayaPluginWizard.vsz MayaPluginWizard.ico

To \VC\VCProjects

c. Copy the MayaPluginWizard folder to \VC\VCWizards


2. Create plugin in Visual Stuio


(This is a sample check box.)???

Is there something missing to finish in this Wizard?

Create a new project, as usual, and click OK. The wizard will show you the screen above. Then you should choose the options you want. By clicking Next you must select the type of plugin you want to create and the Command Name for this plugin (This is the entry point of the plugin in Maya; that is the command you write when calling the plugin)


That's all, you are ready to write your plugin. Please note the Wizard will setup the project so you only have to build the project and the .mll file will be created.

3. Install Plugin in Maya


Open Maya (of course) and go to Window->Preferences->Plugin Manager, click Browse and find the plugin you just created. It should be marked as "Loaded". Check "Auto Load" if you want the plugin to be loaded everytime you start Maya.

4. Execute the Plugin

Open the Script Editor and excecute the command you just created. This is the result from mine:

MysimpleMelCommand;
// Result: MysimpleMelCommand command was successfully excecuted
//

That's all. I hope it works for you.

Some Sources:
http://highend3d.com/boards/lofiversion/index.php/t220538.html