[English]


Maya Tools - Getting Started

Newcomer Section

Maya Tool Collections

Lightstorm3D Toolbox *

Maya MEL Scripts

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

Maya Plug-ins

Beep
Bit Commands
Frame Booster
Invert Matrix
LS3D Library
Notepad
Random Grid

*NEW

Download

Bit Commands
Author: Dirk Bialluch

Bit Commands 1.0 - Maya 2.5 NT
Download (6k)
Bit Commands 1.0 - Maya 3.0 NT
Download (4k)
Bit Commands 1.0 - Maya 4.0 NT
Download (4k)
Bit Commands 1.0 - Maya 4.5 NT
Download (5k)
Bit Commands 1.0 - Maya 5.0 NT
Download (5k)

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)

Copyright 2003-2007 Lightstorm3D GmbH. All rights reserved
No part of this website may be reproduced unless for personal use without prior written permission from Lightstorm3D GmbH.