Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

Maya preserve UV toggle script - debug help

polycounter lvl 17
Offline / Send Message
Rick_D polycounter lvl 17
script I made:

if (setTRSPreserveUVs == true) {
setTRSPreserveUVs false}
else if (setTRSPreserveUVs == false) {
setTRSPreserveUVs true}

the error:

// Error: string setTRSPreserveUVs; //
// Error: Syntax error //
// Error: if (setTRSPreserveUVs == true) { //
// Error: Invalid use of Maya object "setTRSPreserveUVs". //
// Error: //
// Error: Syntax error //

so this is the wrong command to toggle preserve uv's as just running it in the script editor does nothing but tell me it has invalid syntax.

any ideas? i know the script is too basic and simple to possibly function, but it'd be nice to know where i have gone wrong.

thanks!

Replies

Sign In or Register to comment.