PDA

View Full Version : how to bevel plus in multiple curves


romeu
04-06-2006, 10:58 AM
hi,

first i must say that i dont know to write mel script,
but i think this could be a very simple thing to do.

i have a lot of circles

(something like that)

000000
0000
0000
0000 00 00
000 000 000


making a kind of patern and
all i want to do is a bevel plus to each single circle

i can do 1 at the time, but i have some hundreds of them.

Does any one have any suggestion how can i do this?

thanks for any help:thumbsup:

Mikademius
04-06-2006, 12:05 PM
string $selToBevel[] = `ls -sl`;
for ($circles in $selToBevel)
{
bevelPlus -constructionHistory true -normalsOutwards true -range false
-polygon 1 -tolerance 0.01 -numberOfSides 4 -js true -width 0.1
-depth 0.1 -extrudeDepth 0.25 -capSides 4 -outerStyle 0 -innerStyle 0
-polyOutMethod 2 -polyOutCount 200 -polyOutExtrusionType 3 -polyOutExtrusionSamples 2
-polyOutCurveType 3 -polyOutCurveSamples 6 -polyOutUseChordHeightRatio 0 $circles;
}


Note that this includes all the settings for the bevel. What you can do is delete the ones you want at default and then you can edit the ones you want to edit. Select all the circles and run the script

romeu
04-06-2006, 01:02 PM
thanks Mikademius,
works like a charm:)

i got to understand how this simple stuffs in mel script works, do you know some good site to get into mel basics?

Mikademius
04-06-2006, 01:24 PM
I'm writing a tutorial on MEL now that deals with several MEL challenges. I'll let you know when I complete it. You could also check gnomon, they have several DVD's, learningmaya.com etc. google MEL + tutorial too. There are many of them out there :bounce:

romeu
04-06-2006, 02:36 PM
thanks again:thumbsup:

itīs time to get to work and learn....

CGTalk Moderation
04-06-2006, 02:36 PM
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.