Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 15-03-2005, 07:53 AM   #1
Registered User
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default expression problem with a visibility toggle

hi guys

i've created 2 new boolean attributes (called hiRes and loRes) for my subdiv root mesh and connected them to the Visibility attribute of my subdiv shape and poly-proxy cage (respectively).

It's working fine - now i can enter 1 or 0 in the channel box to turn them on or off.

The problem is i want to create a toggle so that when 1 is on, the other is off (hidden). I tried writing this expression but something's wrong. when i execute, it goes through without any errors, but i can't change the attribute value in the channel box (the field has turned purple).

this is what i wrote:

if (polyToSubd1.hiRes=on)

can anyone help? sorry am an expression / scripting novice and i know next to nothing about these things!

lori_hunter is offline   Reply With Quote
Old 16-03-2005, 12:28 AM   #2
Registered User
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts

never mind found the problem:

first line should read if (polyToSubd1.hiRes==on)

thanks for reading!

lori_hunter is offline   Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem solving many dynamic objects in a pile? rohiniduggal Dynamics & Special Effects 3 14-01-2011 07:26 PM
apache environment problem andrew_sorensen Simply Maya Tutorials 4 08-12-2010 03:48 PM
Strange Problem - Unable to change attributes for multiple objects anthonysw3 Technical Issues 4 04-12-2010 11:56 PM

Thread Tools

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.