hohehohe2's OpenMaya tutorial     kotamuraa@yahoo.co.jp



3. Getting started

In this chapter, we will compile a sample plug-in, execute it in Maya,
and overview the process of making a plug-in. Note that this document is
for VC++, not for VC.NET

 First, find the devkit folder on your machine. It is dependent on how it is installed, and
how is your machine.
 As I said before, it is not installed if you didn't "use devkit" when you installed Maya.
The path to this folder is described [devkit Dir].

Find a VC++ project work space

[devkit Dir]\plug-ins\helixCmd.dsw

This is a project to make a plug-in helixCmd.mll.
helixCmd.mll makes a new MEL command "helix".
MEL command "helix" creates a spiral curve.

There are a lot of .dsw files in the plug-ins folder. They are all
very helpful to make your plug-ins.

Double click helixCmd.dsw and start VC++.

Press F7 key and build it. In a while, the following message will be displayed

error(s), 0 warning(s) ---- Done ----- Build: 0 succeeded,
(??? I don't know what will be displayed in English version VC++)

and build is completed.

Now you will find "helixCmd.mll" file in [devkit Dir].

Start Maya and load "helixCmd.mll, type "helix" in the command line or
in the script editor.

Did you successfully get a spiral?

Prev    Contents    Next


Maya is a registered trademark of Autodesk
Copyright
© 2003, Koichi Tamura. All Rights Reserved.









[PR]‰½‚©‚π’T‚·‘O‚Ι–³—Ώθ‚’:“–‚½‚ιI–³—Ώθ‚’w½ΛίΨΑ­±Ω‚ΜŠΩx