PDA

View Full Version : Hide Layers


ramesh03
01-08-2008, 01:12 PM
Hi,

How to hide all the layers through Max-Scripting...

Thanks.

Jon-Huhn
01-08-2008, 02:39 PM
for x=0 to LayerManager.count-1 do (LayerManager.getLayer x).on=true

Keep in mind that layer indices are 0 based, which is why you have to start with 0 when walking through the layer numbers

RustyKnight
01-08-2008, 09:20 PM
for x=0 to LayerManager.count-1 do (LayerManager.getLayer x).on=true

Keep in mind that layer indices are 0 based, which is why you have to start with 0 when walking through the layer numbersShould that be ".on = false"??? I know, it's nit picky ;)

Shane

Jon-Huhn
01-08-2008, 09:42 PM
Yes... well... er, um... in the Latin Vulgate ".true" and ".false" had very close lexiconic correlations, to the point of almost being used interchangably. It really wasn't until the 4th or 5th centry AD that the distinct polarity of the two terms really.... Oh, heck. <sigh> Yeah, should'a been a "false" there. Good catch :)

RustyKnight
01-08-2008, 10:19 PM
Yes... well... er, um... in the Latin Vulgate ".true" and ".false" had very close lexiconic correlations, to the point of almost being used interchangably. It really wasn't until the 4th or 5th centry AD that the distinct polarity of the two terms really.... Oh, heck. <sigh> Yeah, should'a been a "false" there. Good catch :)It's one of those things, that, if I was trying to debug it, it would have taken 3-4 hours to figure out ;)

Besides, no one asked the layer if it wanted to be true or false anyway, it might like to stay indecisive and keep us guessing ;)

JHN
01-09-2008, 08:32 AM
Yes... well... er, um... in the Latin Vulgate ".true" and ".false" had very close lexiconic correlations, to the point of almost being used interchangably. It really wasn't until the 4th or 5th centry AD that the distinct polarity of the two terms really.... Oh, heck. <sigh> Yeah, should'a been a "false" there. Good catch :)

Roflol!

-Johan

shibumenon
01-09-2008, 11:26 AM
hahaha
..................

CGTalk Moderation
01-09-2008, 11:27 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.