Running a string variable as a set of instructions

forgive me if this has been answered before, or if its just plain abvious..

i've been getting into scripting the past few days. its been intereting, but annoying just because i'm trying to figure out all of the commands and specific syntax, often spending hours trying to figure somehting out, and finaly happen to come across the page that explains how platantly simple it is to type """ ;-(~

but this i can't figue out...

basically i have created a script that creates a string vareable that is comprised of an instruction to automatically write an expression; based an different varuables(now thers a redundant statement).

now i just needs it to run that instruction.. so that i have my expression. but i don't knwo how. i can print it.. but that jsut displays the string.. doesn't run it..

i imagine its just one simple cammand like.. return $exp; but it doesn't matter how simple it is if i'm ignorant to its existance.

for anyone who curious.. i'm writing a script that will create a dble parented spline ik that will be able to drive a belt(or any object wrapped around another) based on the cv position of a deforming object.

thanx to anyone who helps out;
zack

if I correctly understud what you mean you can try something like:

{
string $myCMD = "print "Hello"";
eval ($myCMD);
}

this should work. I hope.

Later,

-a

AHHAHAHAHAHHAHAHAH

u did IT!

thank u thank u thank u thank u thank u thank u thank u

told ya it was somehting simple.. and so fast to.. u are fukign awsome

zack

you are welcome

I would like to suggest to download one of the syntax highlight setting for mel for your favorite editor they usually help a lot to get the in the right places.

I personaly use Nedit and love it.

Later.

-a

-a

you are welcome

I would like to suggest to download one of the syntax highlight setting for mel for your favorite editor they usually help a lot to get the in the right places.

I personaly use Nedit and love it.

Later.

-a

-a

again, thanx for your help, i finished up the first version of the script into the animation sectioon.

its named cvFollow, i would appreciate it if you downloaded it and gave me your opinions.

i plan on creating a second version with updated capabilities.. but probably not jsut yet.. i have a lot of animation to do

zack