  | | | Novice at MEL | Novice at MEL 2003-11-25 - By David Martínez Carrasco
Back Hi, I�m a student of Alias Maya and I just started with MEL Scripting.
I have a question about how can i do some things... but one is making me specially crazy!
I have a "textScrollList" and i don�t wanna to put flags manually. Before to enter to the definition of this control, i define a string and I assign the text of the flag like this: --- string $texto = "-append \"1a\" -append \"1b\" -append \"1c\""; ---
So later, i dunno how to put inside of the control. I tried this but script editor says me that the flag is invalid (I have a layout and a window but I will don�t show the code here):
--- textScrollList -numberOfRows 8 -allowMultiSelection true -p estBaseVentana ($texto); ---
My question is... how can i put this string and not recibe an error ? I tried to put the same text manually and it works perfectly. I need this because i will make a "while" to determine all the elements to put on this list.
The other question is how can i do a loop like a "While" inside a control ? it �s making me crazy! The control thinks that i�m putting flags and always give me error
any help will be appreciated
Sorry for my english, it�s a little difficult for me. Hope u understand me! :P
--- David Mart�nez Carrasco - Thorse E-Mail: david@(protected) Temporal Gallery: http://thorse3d.tripod.com/ ---
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|
 |