PDA

View Full Version : change Value of a Variable


Siahpoosh
02-05-2008, 10:29 AM
hi guys
i have a basic problem in mel. i want to change value of a variable for example see this script :



$dn = "polySphere";

if (pSphere2.translateX >= 2) {

// in this line i want to change "polySphere" to "polyCube"

}

i want chage polySphere to polyCube after translateX >= 2.



thanx for your helps

kojala
02-05-2008, 12:08 PM
so I m not quite sure what you wanted..



$dn = "polySphere";

if (pSphere2.translateX >= 2)
$dn = "polyCube";




?

Siahpoosh
02-05-2008, 02:15 PM
thanx a lot kojala
i`m basic in programming.

thanx again

CGTalk Moderation
02-05-2008, 02:15 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.