Before someone jump in saying that maya is the worst thing in the universe
because of scripting and so on... 4 lines of code.

from maya import cmds
from random import random
for each in cmds.ls(sl=True, l=True):
    cmds.setAttr(each + ".translateX", random() * 500)

Is it better than Softimage? hell no!
Is it a big deal? not at all.

Cheers!

On Fri, Mar 6, 2015 at 10:51 PM, Mario Reitbauer <[email protected]>
wrote:

> Only this (at least according to the docs):
>
>
>    - Type +=n to add n to the current value.
>    - Type -=n to subtract n from the current value.
>    - Type *=n to multiply n by the current value.
>    - Type /=n to divide the current value by n.
>    - % as a suffix Indicates a percentage-based operation (For example,
>    +=10% adds 10% of the current value to each selected value)
>
>
>
> 2015-03-06 12:28 GMT+01:00 adrian wyer <[email protected]>:
>
>>       in soft we can type into rotate translate scale, simple
>> expressions to get random or linear values
>>
>>
>>
>> is there an equivalent in maya?
>>
>>
>>
>> i want to apply a random frame offset on a shape node (animated archive)
>>
>>
>>
>> i would have thought something like it is in soft;   R(0,500)
>>
>>
>>
>> but can't seem to find any info on this!
>>
>>
>>
>> a
>>
>>
>>
>> Adrian Wyer
>> Fluid Pictures
>> 75-77 Margaret St.
>> London
>> W1W 8SY
>> ++44(0) 207 580 0829
>>
>>
>> [email protected]
>>
>> www.fluid-pictures.com
>>
>>
>>
>> Fluid Pictures Limited is registered in England and Wales.
>> Company number:5657815
>> VAT number: 872 6893 71
>>
>>
>>
>
>

Reply via email to