View Full Version : Expressions.
Aegis 06-25-2002, 02:30 PM i have a cube and a sphere in my scene
i need to create an expression where whenever i translate a this certain cube in my scene on the Y axis, another object (like a sphere) moves on the Z axis.
I'm trying to create like a pattern animation so that it looks like things are moving in harmony with one another.
anyone know what the expression would be?
|
|
svenip
06-25-2002, 02:42 PM
expression would be easy to write
sphere.tZ = cube.tY;
but there are better way through the connection editor or the Set Driven Key Tool for that kind of task.
rsalonen
06-25-2002, 05:22 PM
just a little addon question for Svenip here, you wrote just a "t" which I assume is translate
you must not write the whole word?
SheepFactory
06-25-2002, 05:34 PM
"t" is short for translate , which maya understands and converts to "translate" after running the script. there are short versions of all the commands in maya to save you time when writing expressions and mel.
more datailed info can be found in the help files > expressions section.
svenip
06-25-2002, 05:41 PM
yesm Sheep Factory is right. just forgot that to explain. :hmm:
TumikSmacker
06-25-2002, 06:56 PM
Cool!! Exression help!!
how would i go about making a spheres radius get bigger as i move the cube on its Y axis?:)
svenip
06-25-2002, 07:10 PM
same thing and way :
sphere.scaleX = cube.tY +1; (the 1 because of original radius)
sphere.scaleY = sphere.scaleX;
sphere.scaleZ = sphere.scaleX;
TumikSmacker
06-25-2002, 07:12 PM
thanks :)
hey anyone know if theres a tutorial online on how to build your own custom made GUI (Interfaces) in Maya using MEL?
Oh there's a whole section just for making your own GUI with MEL in the manuals, you should maybe check that out :thumbsup:
TumikSmacker
06-25-2002, 07:19 PM
i dont have any of the manuals, i'm taking a course right now and Maya is at my school :( thats why im wondering about some tutorials...
Oh, too bad, those are just marvelous...
But I think someone once uploaded the whole manual to the net, so you could try searching for it, I kinda remember once seen the manuals somewhere.
aqeel
06-27-2002, 10:05 AM
here you can download the manuals,
http://aliaswavefront.topdownloads.com/pub/bws/bws_79/maya_docs-4.0.2-win32.exe
they are really usefull, worth reading....enjoy!
CGTalk Moderation
01-13-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.