Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 18-06-2004, 11:19 PM   #1
Gun-Kata
Registered User
 
Gun-Kata's Avatar
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default scripts, expressions, and procedures

What's the difference between a script, an expression, and a procedure?
Gun-Kata is offline   Reply With Quote
Old 18-06-2004, 11:35 PM   #2
Immortal1490
Subscriber
 
Join Date: Jan 2004
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Expressions are in procedures and procedures are in scripts? Nice avatar btw
Immortal1490 is offline   Reply With Quote
Old 21-06-2004, 10:02 AM   #3
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

no...

a procedure can be defined and used in a script. If you are familiar with other languages it's basically a function. It takes parametres (but doesnt have to) and returns a value but again doesnt have to.

A script is a bunch of procedures and other code written together to do a specific task. It can have procedures etc.

An expression is typically done on one or more "channels" in maya. E.g. pCube1.tx += 1; in the tx channel will move the cube on a frame by frame basis along the x axis.

Hope that helps a bit
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 21-06-2004, 10:20 AM   #4
shahid_hassan99
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a
shahid_hassan99 is offline   Reply With Quote
Old 21-06-2004, 12:45 PM   #5
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

wow there's some really useful comments on the board today
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 21-06-2004, 02:33 PM   #6
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

In some languages procedures are sub-programs which do not return a value and functions are sub-programs which do return a value. In MEL all sub-programs are called procedures. They can be local or global.
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 21-06-2004, 03:40 PM   #7
Gun-Kata
Registered User
 
Gun-Kata's Avatar
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!
Gun-Kata is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.