Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This simple script makes it very easy to select multiple objects that share a common string in their names using wildcards, then randomize an attribute on all of them within parameters you input. Or simply use it to make selections.
1) Place script in scripts directory, source, then run SD_randomizeAttr. 2) Select one of the objects that you want to randomize, and press "Load Selection". Edit to only the part of the name that is shared. 3) Press "Select Affected Objects" to see which objects are included. Further edit the selection string as necessary. 4) Type the name of the attribute to randomize, or select it in the channel box and press "Load from Channel Box" to enter it. 5) Enter the upper and lower random values you want to use, using the sliders or by entering numbers into the fields. Press "Randomize". A unique random value within that range will be assigned to each object.