Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   expression update problem (https://simplymaya.com/forum/showthread.php?t=31372)

bendingiscool 17-11-2008 09:25 PM

expression update problem
 
Hey, I'm havng a problem with an expression, I'm trying to get Maya to do something when it reaches a current time, here's what I have so far...


int $time = `currentTime -query`;

if ($time = 100)
{

print whatever;// will be replaced by command later on

}


at the moment it prints the word every frame, where as I want it to only print when it gets to 100.

Any ideas what I'm doing wrong?

Cheers,

Chris

BennyK 18-11-2008 12:52 AM

Is it supposed to be
Code:

$time = 100
or
Code:

$time == 100
?

bendingiscool 18-11-2008 04:09 PM

Ya its the second one, thats what I was comfsed about, completly forgot the syntax ;)

Cheers

Chris


All times are GMT. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018