Message 1 of 4

Not applicable
06-13-2017
09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I'm new to MEL script and wanted to create a simple way of quickly randomizing certain attributes of geometric primitives. For example, if I wanted to randomize the ScaleY of pCube1 within a range of .5 to 1.5.
I noted in the script editor that when I manually scale in Y to .5 it says
scale -r 1 0.5 1 ;
My idea would be to run a command that says something like
scale -r 1 rand<<.5,1.5>> 1 ;
but of course this isn't the correct syntax. Could someone please give me a correct example? Thanks for your time.
Solved! Go to Solution.