Code


Transform Randomizer

Transform Randomizer allows you to quickly inject variety into your scene by randomizing the Translate, Rotate, and Scale attributes of selected objects. It is particularly useful for breaking up the “perfect” look of duplicated assets, such as scattered debris, foliage, or architectural elements, by providing fine-tuned control over the range and distribution of the transformations.


Features

Handy Interface

A compact, intuitive UI that provides immediate access to randomization settings for all three transformation channels.

Bias for Random Values

Control the distribution of results with bias settings, allowing you to favor either the minimum or maximum ends of your defined range.

Seed Control

Use specific seed values to generate repeatable random patterns, making it easy to iterate on a look until it’s perfect.


Setup


Installation

Transform Randomizer is part of the FX Python Tools library. Download fxpt from GitHub and add it to your PYTHONPATH directory.


How to Run

Spark is handy when assigned to hotkey, so make one with the following Python code:

Python
from fxpt import fx_transform_randomizer
fx_transform_randomizer.run()

Compatibility

Tested on

Maya 2016
Maya 2017
Maya 2022 (with “-pythonver 2” flag)

Requirements

Maya versions using a Python 2.7 interpreter