Notifications
Clear all

[Closed] wats FLAG & BIN in editablepoly methods

i wanted to access editpoly methods via script when i read about them in reference i found the two terms of bit and flag though xplained i didnt get them really deeply they look so important so anyone give me any brief explaination ?

3 Replies

ok my qs seems to be unclear when i referred to editablepoly in reference i noted the frequent usage of bit it seems that s a way to referr to specific set of poly but not understanding how to do so as i wish
secondily its the term flag and unflag wats meant by that , i am stilll a beginer in max script
i wish to get declaration from u guys , thank u in advance!

Hi,

BitArray is used throughout 3ds Max to compactly encode selections as a string of bits

a bit is an on-off or true-false or 1-0 VALUE.
a bitarray is an ARRAY that ONLY holds BIT values (true,false)

for example, when selecting vertices of an object, for one of these verts, either it is selected(true) or not(false). say you want to select verts 2,3,4,8:
standard array -> Array1=#(2,3,4,8)
bit array -> Array2=#{2…4,8}

Basically Array2 represents #(false,true,true,true,false,false,false,true)

Array2 reads as follows: 1st element is not specified, so it’s value is false (Array2[1]=false)
then 2nd to 4th element are true (Array2[2]=false,Array2[3]=false,Array2[4]=false)
5th,6th,7th element not specified, so they are false
8th element is true

Read ‘BitArray Values’ maxscript help…

ok thats so clear so far xcellent xplaination but wat about flags how much important it is wat s its consideration ? thank u for reply again!