PDA

View Full Version : Script: $.surfSubdivide


Namroth
01-25-2003, 07:39 PM
How to write script that will switch $.surfSubdivide = on/off in EPoly?

it will look status on surfSubdivide and than change off/on?

LFShade
01-25-2003, 08:13 PM
That's easy, a one-liner!

$.surfSubDivide = not $.surfSubDivide

Namroth
01-25-2003, 08:36 PM
No that was not the effect I wanted, I want to switch "Use NURBMS Subdivision" on/off when I model in EPoly. If I use "off" and "on" and not "not" I get this. Do you know how to write right "if, else" that will work with this.

LFShade
01-25-2003, 08:43 PM
I'm confused. Toggling on/off NURMS subdivision is precisely what that code does! You don't need to use "off" and "on" with this code - it works as-is. If you don't believe me, just enter it exactly as I wrote it into the listener with an EPoly object selected. Let me know what you find.

Namroth
01-25-2003, 09:22 PM
Thanx it works, I did wrong when I conected key to it, the same key was conected to:
Group: Editable Poly / Meshsmooth.

Very strange that it didnt warn me that key was asigned before.

CGTalk Moderation
01-14-2006, 06:00 AM
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.