th3m3nt4l
02-27-2012, 11:54 AM
right now I have created a script file.. call it script.mel for now.
right now it looks closely too:
myGui;
global proc myGui(){
makes the gui;
}
proc buttnChck(){
checks the state of elements in the gui and enables/disables certain portions of the gui
}
proc Names(){
Contains Arrays of Names and suf/prefixes to be used throgh out the script.
}
proc Positions(){
contains a matrix with default x, y ,z positions and a loop to get the positions of certain elements
}
....
The Problem I'm experiencing is that; out side of the GUI proc, if I don't declare the procedure's as global... the script breaks with the error of "cannot find procedure /Name/". Right now its ButtnChck.. but if I change it to global the next non-global proc causes the error. Any one have an idea as to the solution, besides making everything global- I'd like to avoid that for now.
In a second question: Is it possible to declare a matrix of lets say 0,0 and have its size updated- let say have 3 arrays representing x,y,z cordinates?
right now it looks closely too:
myGui;
global proc myGui(){
makes the gui;
}
proc buttnChck(){
checks the state of elements in the gui and enables/disables certain portions of the gui
}
proc Names(){
Contains Arrays of Names and suf/prefixes to be used throgh out the script.
}
proc Positions(){
contains a matrix with default x, y ,z positions and a loop to get the positions of certain elements
}
....
The Problem I'm experiencing is that; out side of the GUI proc, if I don't declare the procedure's as global... the script breaks with the error of "cannot find procedure /Name/". Right now its ButtnChck.. but if I change it to global the next non-global proc causes the error. Any one have an idea as to the solution, besides making everything global- I'd like to avoid that for now.
In a second question: Is it possible to declare a matrix of lets say 0,0 and have its size updated- let say have 3 arrays representing x,y,z cordinates?
