Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums

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 28-01-2006, 07:57 PM   #1
Forlax's Avatar
Join Date: Aug 2003
Location: Middlesbrough, UK
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default Variable names and variable names!!!


MEL doesn't allow arrays/matirces of more than two dimensions....

I need a 'matrix' with 3 dimensions.....which I can't have....that contains a reference to (any) number of objects, the number of vertices of that object and the (x,y,z) positions of the vertices.

I need this so I can loop over each object, get each vertex and ultimately it's position and store them all to refer to them later on.

I thought about two two store each object and a matrix to store the vertex and position data. How can I 'link' them together???? I can I create the object variables in one loop and then refer to those names in another loop to get the vertex data????

Anyone got any idea?

Sorry if this question is convoluted.


I used to be indecisive, but now I'm not so sure.

AIM: tomohawkcg
Forlax is offline   Reply With Quote
Old 30-01-2006, 02:11 AM   #2
Registered User
MattTheMan's Avatar
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
Thanks: 0
Thanked 18 Times in 18 Posts

why can't you just format the matrice like this?

matrice vertice 2d -

|x, y, z| row 1 - vertice 1
|x, y, z| row 2 - vertice 2
|x, y, z| row 3 - vertice 3... etc
|x, y, z|
|x, y, z|
|x, y, z|

So far this has worked for me in c++ when working with my own 3d prog.

Works well when dealing with other such as rotation, translation, and scaling matrices.
Live the life you love, love the life you live
MattTheMan 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-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.