olcho
11-10-2006, 10:28 PM
just finished a really simple but a rather useful (I hope) script for adding a noise controller for maya objects - ever wanted to make a really quick camera shake and have all the controls youd need (almost like in MAX)?
Sometimes despite the enoromus flexibility of MAYA, there are some so simple things that would make our lives a lot easier and seem so obvious, that i wonder why they haven't been put into it yet.
anyway, here's a little brief on what it does:
adds basically 2 control Dummies - simple poly cubes with no shader, so that they don't render.
Dummy 1 (bigger) is actually the main control object. it also contains the controls for the noise on all 3 axis on translate, rotate and scale :)
for each control you have 4 attributes:
*multiplierX,Y,Z - does what it says. if you don't want any noise - set it to 0 (default)
*frequencyX,Y,Z - no need to explain
*offsetX,Y,Z - offsets the noise. Since every expression I used is the same, I had to put something to make the noise look different in each axis
*above0_X,Y,Z - it's an On Off switch. If you want the noise to be only above 0, turn that on and keep the multiplier > 0. if you want it to be below 0, turn that switch On and keep the multiplier < 0;
now since there are controls for the rotate and scale as well, i tried to keep things a bit cleaner, because otherwise you would have to deal with quite a lot of attributes simultaniously. I added a Noise attribute, which has 3 options - Translate, Rotate and Scale. Turn on whichever you want to control. There is only one drawback to this - all the parameters of the noise have a keyframe at frame 0. so if you want to play with the parameters and not animate them, you have to change them either at frame 0 or in the graph editor.:D
if there's a second version of this, I guess I'll try to improve that.
the second dummy simply holds the noise expressions. It's hidden and you don't really need to do anything with it.
One other thing that i added is that if the object you want to add the noise to already has animation on it, it is automatically transfered to the control object.
well, I guess that wraps it. Hope it helps and you'll find it useful. feel free to do whatever you want with it.
the name of the script is addNoiseControler.mel. source it, select an object and run addNoiseControler()
you should be able to put it on as many objects as you want simultaniously. if u run into problems, say so and i can try to fix tem.
enjoy
______________
see below for link
Sometimes despite the enoromus flexibility of MAYA, there are some so simple things that would make our lives a lot easier and seem so obvious, that i wonder why they haven't been put into it yet.
anyway, here's a little brief on what it does:
adds basically 2 control Dummies - simple poly cubes with no shader, so that they don't render.
Dummy 1 (bigger) is actually the main control object. it also contains the controls for the noise on all 3 axis on translate, rotate and scale :)
for each control you have 4 attributes:
*multiplierX,Y,Z - does what it says. if you don't want any noise - set it to 0 (default)
*frequencyX,Y,Z - no need to explain
*offsetX,Y,Z - offsets the noise. Since every expression I used is the same, I had to put something to make the noise look different in each axis
*above0_X,Y,Z - it's an On Off switch. If you want the noise to be only above 0, turn that on and keep the multiplier > 0. if you want it to be below 0, turn that switch On and keep the multiplier < 0;
now since there are controls for the rotate and scale as well, i tried to keep things a bit cleaner, because otherwise you would have to deal with quite a lot of attributes simultaniously. I added a Noise attribute, which has 3 options - Translate, Rotate and Scale. Turn on whichever you want to control. There is only one drawback to this - all the parameters of the noise have a keyframe at frame 0. so if you want to play with the parameters and not animate them, you have to change them either at frame 0 or in the graph editor.:D
if there's a second version of this, I guess I'll try to improve that.
the second dummy simply holds the noise expressions. It's hidden and you don't really need to do anything with it.
One other thing that i added is that if the object you want to add the noise to already has animation on it, it is automatically transfered to the control object.
well, I guess that wraps it. Hope it helps and you'll find it useful. feel free to do whatever you want with it.
the name of the script is addNoiseControler.mel. source it, select an object and run addNoiseControler()
you should be able to put it on as many objects as you want simultaniously. if u run into problems, say so and i can try to fix tem.
enjoy
______________
see below for link
