View Full Version : change Value of a Variable

02 February 2008, 11: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

02 February 2008, 01:08 PM
so I m not quite sure what you wanted..

$dn = "polySphere";

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


02 February 2008, 03:15 PM
thanx a lot kojala
i`m basic in programming.

thanx again

CGTalk Moderation
02 February 2008, 03: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.