Skip to content

RS Distribute#

About#

Distribute overlapping objects based on their bounding box.

Example

Installation#

Compatibility#

Maya 2024 2025 2026 2027
✓ ✓ ✓ ✓
Python 2.7 3.x
✓

How to install#

  1. Extract RS_Distribute.pyc from RS_ToolPack1_MAYAVERSION.zip (the zip for your Maya version, e.g. RS_ToolPack1_M2026.zip for Maya 2026)

  2. Copy RS_Distribute.pyc to :

    \Users\USERNAME\Documents\maya\MAYAVERSION\prefs\scripts
    
    $HOME/maya/MAYAVERSION/prefs/scripts
    
    $HOME/Library/Preferences/Autodesk/maya/MAYAVERSION/prefs/scripts
    
  3. Launch / Restart Maya

  4. In Maya, open a Python Tab in the Script Editor and execute :

    import RS_Distribute as RSDis
    RSDis.MainClassRSDistribute()
    

    Attention

    Please make sure that there are no Space characters in front of each code line.

Interface#

Screenshot

Tool Menu#

Info

The Tool menu is located in the top right corner of the toolkit.

  1. Up arrow closes all tabs

  2. Down arrow opens all tabs

  3. The Screenshot icon opens a new window with information about the tool

Distribute#

How to use

  1. Select multiple overlapping objects (at least two)
  2. Set your options
  3. Click Distribute Objects to run the script

How the objects are spaced

The objects line up along the Axis in the order they were selected; the first one stays where it is. Their sizes come from their bounding boxes in world space, so rotated objects and objects inside scaled groups are spaced by the room they really take. Spacing is the gap between two neighbours. One undo step.