Maya Bevel Source Code?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2012
Maya Bevel Source Code?

Is the source code (hopefully in MEL or Python) for Maya's bevel tool available somewhere in the installation directory?

Basically I'd like to tweak it so that the tool adds edge loops, without actually altering the positions of a model's original vertices. Not exactly sure where to begin, though...
  06 June 2012
Most of the tools in Maya (especially those that add a history state like Bevel) are internally coded (in C++ or whatever) and you don't get access to actual source code, only the AutoDesk devs ever see that.
The only "source" code that users have access to in the install folder is the MEL scripts which do stuff like set up the UI, build the menus, and call all these internal commands (and some stuff like API example code, etc..)

What most people do who want to make "tweaks" to Maya tools like this is to write a wrapper function of some kind that calls the appropriate maya internal command (i.e. in this case polyBevel) after doing some custom preparation and then some post work (e.g. finding the newly added bevel edges and calculating where to add edge loops from that).

I suggest you start by looking at the MEL documentation for the polyBevel command because I don't think you'll find anything in the install folder about it, other than the MEL scripts that set up the menu items for it and it's options dialog.
  06 June 2012
Thanks for the prompt response, Naughty Nathan. I was afraid of that, but you've given me a good starting point with your suggestion of wrapping the polyBevel command. I'll give that a shot, and if it pays off I'll likely post the script here.
  06 June 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:34 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.