I have written a Script that duplicates a curve 17 times (18 pieces), turns all into soft objects and rotates each 20 degrees multiplicated with its index (so all 18 pieces shape a circle). Now I have written an expression, but there is a variable, thet needs to be multiplicated with the index, too, and thats the problem. When you use eval command, you use quotation marks, wherein you use dynExpression command, again with quotation marks, so that MAYA interprets the second marks as the end of the string of the eval command. Anybody knows a sollution ?!?
you have to use the escape character to tell maya that your quotes are nested and that the quotation mark in question is the start of another set, not the end of the first.........
i would concatenate the second command with quotes into a string variable and then use that variable in the first command.
to get a set of quotes in a built command without having mel see them as what mel normally sees quotes as,...
(this is an example of a very similar problem from FS_KEYPOSER for irix found on the "animation" mel stack on this site)
notice the """ this allows the quote to be seen as a character to be recorded in a string, not as a "".
i know this is not exactly what you need, but there should be a way to get what you want without a workaround by somehow using the escape sequence to tell mel how to see your quotes
Yes, I have done this, but the script editor writes: dynExpression " blah, blah, blah "; This quotationmarks were the problem. I think therrells sollution is up to now the one and only.
i'm a senior working on my thesis in computer animation. i'm taking a mel scripting class that is required for graduation and i'm really having problems in it due to the massive time involved working on my thesis. for the mel class, we have a final project to do in which we have to create a user interface window with a slider that controls an objects attributes. what i was going to to do is make a slider that controls the rate in which my main character's heart beats (from my thesis). i'm really in the dark as to how to do this and i really have no time to sit down and try and figure it out, so if anyone out there can give me a hand with this, it'd be greatly appreciated. reply quickily, because the due date is in a week and half. thanks again.
Here's a function I wrote for my own thesis project (in architecture) that takes a list of joint names, gets some of their attribute values then constructs a window with sliders and collapsable frames to control the attribute settings.
DM
// ...................................................................... // // function : drawU2kParamControl // // date : 991201 // desc. : // inputs : (string) list of joints connecting bays // (string) name of IKhandle at end of skeleton // outputs : (int) returns 1 if successful // ......................................................................