PDA

View Full Version : Mel beginner asking for help about few problems


StefanStavrev
08-07-2006, 05:33 PM
Hey guys

I am mel beginner and i would apreciate if you would like to help me with these problems :

1. I am working on a mel script, and i have Help menu.In that menu there is about button.How can i disable the main window of my (program) - mel script when the about window is activated.Like in most programs.

2. Guys, i don't understand what kind of attribute type is "double".

3. I have problems with understanding "regular procedures".Help about them please.

4. What kind of data type is "double array" ?

PS : I have read the book "MEl scripting for animators" and did all the examples perfectly.Also i used help in maya to try to solve these problems,but ...

Looking forward to learn from you guys :)

Thanks

Ge-ZUS
08-08-2006, 08:14 AM
to 2:

double is not an attribute, it is a datatype. float will reserve 4 bytes of memory whereas double will reserve twice as much, 8 bytes of mem. So double will be able to store as twice as precise numbers than float does.

StefanStavrev
08-08-2006, 10:47 AM
PROBLEM 2 SOLVED

Thanks man

Guys, about the others help please :)

Blue Bird
08-09-2006, 11:09 AM
Answer to Question 1:

Use confirmDialog if you just want to create a simple modal dialog box (that's what programmers like to call them), or use layoutDialog if it's really complicated. Alternatively you can always code a custom Maya plugin (that creates a modal dialog box) using C++.

Answer to Question 3:

I don't think "regular procedures" means anything special (at least to me). On the other hand, there is global and local procedures in MEL that any MEL programmer will instantly recognize. The online help has a whole section devoted to this topic under Using Maya/MEL and Expressions/Procudures.

Answer to Question 4:

I've never heard of the term "double array" in MEL before, but I guess you are referring to a float array which is just an array of floating pointing numbers that look something like this:

float $array[100]; // array of 100 floats

Hope it helps. :)

Blue Bird

StefanStavrev
08-09-2006, 01:17 PM
Problem 1 solved

Problem 3 - i am familiar with global and local procedures,but these regular.Nevermind :) I think i won't use them too

Problem 4 - Yes there is such thing.As matter a fact i just read in maya 8(i just got it) help that double array is an array containing doubles, and double is as twice as big as float.Float reserves 4 bits of memory and double 8.

All problems solved :)

Thanks guys :)

CGTalk Moderation
08-09-2006, 01:17 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.