Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 15-03-2005 , 07:53 AM
Registered User
Join Date: Dec 2004
Posts: 47

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)
polyToSubd1.loRes=off;
else
polyToSubd1.loRes=on;

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

thanks
Lori

# 2 16-03-2005 , 12:28 AM
Registered User
Join Date: Dec 2004
Posts: 47
never mind found the problem:

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

thanks for reading!

user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads