rockingTransformMain.cpp

//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies this software in either electronic
// or hard copy form.
// ==========================================================================
//+

#include <maya/MFnPlugin.h>
#include <maya/MPxTransform.h>
#include <maya/MPxTransformationMatrix.h>
#include <maya/MTransformationMatrix.h>

#include "rockingTransform.h"

//
// Plug-in entry point
//
MStatus initializePlugin( MObject obj )
{ 
        MStatus   status;
        MFnPlugin plugin(obj, PLUGIN_COMPANY, "6.5", "Any");

        status = plugin.registerTransform(      "rockingTransform", 
                                                                                rockingTransformNode::id, 
                                                                                &rockingTransformNode::creator, 
                                                                                &rockingTransformNode::initialize,
                                                                                &rockingTransformMatrix::creator,
                                                                                rockingTransformMatrix::id);
        if (!status) {
                status.perror("registerNode");
                return status;
        }
        return status;
}

//
// Plug-in exit point
//
MStatus uninitializePlugin( MObject obj)
{
        MStatus   status;
        MFnPlugin plugin(obj);

        status = plugin.deregisterNode( rockingTransformNode::id );
        if (!status) {
                status.perror("deregisterNode");
                return status;
        }

        return status;
}


Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6