|
Newcomer
Section
Lightstorm3D Toolbox *
Blend
Node
Cleanup
Connect Poly Shape (CPS)
Create Chain
Create Tube
Create Wire
Curve Length
Cycle Anim Curve
Cycle Shelves
DOF Control
Footstep System
Insert Isoparm
LS3D Copy Vertex
Pos
Motion Control
Multi Influence
Randomize Channel
Randomize Points
Pivot Toolbox
Scale Anim Curve
Snap Point To Grid
Spiral
Beep
Bit Commands
Frame Booster
Invert Matrix
LS3D Library
Notepad
Random Grid
*NEW
|
Bit
Commands
Author: Dirk Bialluch
This
plug-in will add five new MEL commands to modify values
on binary level. The commands may be useful if you are
used to assembler or C programming.
Installation
Copy the file "bitCommands.mll" to your "Mayax.x/bin/plug-ins"
folder. Open the Plug-in Manager and load the plug-in.
Usage
| and
<int> <int> |
Perform
a boolean "and" operation |
and
value boolValue and
12 10 (result: 8)
and %1100 %1010 (result: %1000) |
| or
<int> <int> |
Perform
a boolean "or" operation |
or
value boolValue
or 12 10 (result: 14)
binary: or %1100 %1010 (result: %1110) |
| shiftLeft
<int> <int> |
Shift
all bits left |
shiftLeft
value shiftValue
shiftLeft 7 2 (result: 28)
binary: shiftLeft %111 2 (result: %11100) |
| shiftRight
<int> <int> |
Shift
all bits right |
shiftRight
value shiftValue
shiftRight 21 2 (result: 5)
binary: shiftRight %10101 2 (result: %101)
|
| bitTest
<int> <int> |
Test
if the specified bit is set (1). Command returns
0 or 1. |
bitTest
value bitNumber
bitTest 21 4 (result: 1)
binary: bitTest %10101 4 (result: 1) |
|
|