MaxScript function polyOp.setEdgeFlags doesnt works?

MaxScript function polyOp.setEdgeFlags doesnt works?

Anonymous
Not applicable
374 Views
0 Replies
Message 1 of 1

MaxScript function polyOp.setEdgeFlags doesnt works?

Anonymous
Not applicable
1. I selected an one edge of my EditablePoly object
2. Then I opened the MAXScript Listener window
3. Then I entered the following lines into upper area of Listener's window, pressing 'enter' after each line

edgeIdx = ((polyOp.getEdgeSelection selection) as array)
edgeFlags = polyOp.getEdgeFlags selection edgeIdx
( s=""; for i=0 to 31 do (s += (bit.and (bit.shift edgeFlags -i) 1) as string); format "%\n" s )
polyOp.setEdgeFlags selection edgeIdx (bit.set edgeFlags 32 true)
edgeFlags = polyOp.getEdgeFlags selection edgeIdx
( s=""; for i=0 to 31 do (s += (bit.and (bit.shift edgeFlags -i) 1) as string); format "%\n" s )
polyOp.setEdgeFlags selection edgeIdx (bit.set edgeFlags 32 false)
edgeFlags = polyOp.getEdgeFlags selection edgeIdx
( s=""; for i=0 to 31 do (s += (bit.and (bit.shift edgeFlags -i) 1) as string); format "%\n" s )


4. The output area of my MAXScript Listener contains now:

879
-2130706431
10000000000000000000000010000001
OK
OK
-2130706431
10000000000000000000000010000001
OK
OK
-2130706431
10000000000000000000000010000001
OK


same result when i doing this from macro

what the.. ? why the edge flags doesnt change with polyOp.setEdgeFlags
0 Likes
375 Views
0 Replies
Replies (0)