
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've just started playing around with maya plugin development today. I've got my environment setup and can compile a hello world command plugin. Running "HelloWorld" in the MEL commandline I see it prints out "Hello world!".
Now I'm trying to get one of the example plugins compiled but I'm having some issues. I'm using Visual Studio 2015 Update 3 for compiling the plugins. I don't see a visual studio project file for any of the example plugins, so I've created a new project using the MayaPluginWizard and called it circleNode. Inside that I copy and pasted the circleNode.cpp code into the cpp file automatically created for the project. Everything compiles without any errors and I copy it into a folder in my Maya plug-ins folder. I load it just the same as my hello world.
The circleNode.cpp file has instructions at the top that state:
// Executing the command "source circleNode" will run the MEL script which will // create a new "Circle" menu with a single item. Selecting this will build // a simple model (a sphere which follows a circular path) which can be played back, // by clicking on the "play" icon on the time slider. Note: the circleNode // plugin needs to be loaded before the "Circle" menu item can be executed // properly.
I'm trying to run source circleNode in the MEL command line but it comes back with this error:
// Error: Line 1.18: Cannot find file "circleNode" for source statement.
As you can see I have the plugin loaded.
I'm not to familiar with Maya, Ive done a little bit of it in the past but I'm going to be working on a plugin for a client so I'm trying to get back into it. Maybe I'm just running the example wrong. I think theres some parts of circleNode that I can use for the plugin I need to make so thats why I'm trying to get it running.
Solved! Go to Solution.