Message 1 of 1
MaxScript function polyOp.setEdgeFlags doesnt works?
Not applicable
08-15-2010
03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
4. The output area of my MAXScript Listener contains now:
same result when i doing this from macro
what the.. ? why the edge flags doesnt change with polyOp.setEdgeFlags
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