Redshift Color Jitter / Attribute Randomiser Script
If you have ever used Redshift before, you know its fast, but lacks some important features. I am excited to share a Python script I developed for Maya. This script allows you to generate random attributes unique to each object, which can be used to offset colours.
HOW TO USE
Installation
- Open your script editor in Maya
- Create a Python Tab by pressing the + just below the command history list
- Press Ctrl+A to select the whole script
- Middle-Mouse Click + Drag the script onto the Custom shelf and you will have a new button which will launch the script. Play around with the settings and name to get it looking how you want.
^ I also have a tutorial on setting all of this up on a YouTube Video: https://www.youtube.com/watch?v=Zr_rmjGr59w
After running the script, a user-friendly interface window will appear, providing you with various options to control the colour attributes. Here's a breakdown of the interface:
- Hue, Saturation, and Gamma: These checkboxes allow you to enable or disable each attribute individually. You can select the attributes you want to randomize for your objects.
- Min/Max Values: Adjust the minimum and maximum values for each attribute to define the range within which the randomization will occur. Hue ranges from -180 to180m. Saturation and Gamma range from 0 to 2.
Create Attributes / Randomise [BUTTON]
- Select the objects you want to apply the colour attributes to in the Maya scene.
- Use the interface to set the desired attribute ranges and enable the checkboxes for the attributes you want to randomize.
- Click the "Create Attributes / Randomize" button in the interface and it will generate random values for the enabled attributes within the specified ranges and apply them to the selected objects.
Selecting Objects with Attributes [BUTTON]
To quickly select objects that have colour attributes assigned to them, you can use the "Select Objects with Attributes" button. This feature helps you easily manage you scene better.
Remove Attributes [BUTTON]
If you want to remove the colour attributes from selected objects, simply click the "Remove Attributes" button. This is useful when you want to revert to the original colours or start fresh with a new colour setup.
Conclusion
I encourage you to download the free script. Feel free to modify and adapt the script to suit your specific needs. If you have any questions or feedback, please don't hesitate to leave a comment or review!
You'll receive a Python Script :)