## 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

# Welcome to Simply Maya

 Simply Maya User Community - Maya Tutorials Obtaining Data From Graphs
 Register FAQ Members List Calendar Mark Forums Read

 19-10-2006, 01:57 PM #1 gster123 Moderator     Join Date: May 2005 Location: Manchester Uk Posts: 6,300 Thanks: 1 Thanked 51 Times in 45 Posts Obtaining Data From Graphs Hi Guys Is there any way to get a set of data from a graph in maya, for example a data series of the points of which keys are set so that the data series is as follows Time (frame) Translate X Value 1 10 5 12 7 15 17 17 etc etc Since the values are there to make up the graph is there a MEL script that can extract there values into a series of values likethe above example? Hope this makes sense. Cheers Steve __________________ "No pressure, no diamonds" Thomas Carlyle
 22-10-2006, 01:13 AM #2 Alan Moderator     Join Date: Oct 2002 Location: London, UK Posts: 2,800 Thanks: 0 Thanked 5 Times in 5 Posts If I understand properly then you can do something like this: float \$timeArray[] = {}; float \$valueArray[] = {}; int \$nextIndex = size(\$timeArray); float \$currentTime = `currentTime -q`; string \$myObject = "pCube1"; \$timeArray[\$nextIndex] = \$currentTime; \$valueArray[\$nextIndex] = `getAttr -t \$currentTime (\$myObject + ".tx")`; A __________________ Technical Director - Framestore Currently working on: Your Highness IMDB
 22-10-2006, 06:14 PM #3 gster123 Moderator     Join Date: May 2005 Location: Manchester Uk Posts: 6,300 Thanks: 1 Thanked 51 Times in 45 Posts Nice one A! Cheers for that, i'll give it a whack. If I get stuck will the help files give me some pointers to the attributes that your calling and the functions? Very new to mel (have used Delphi and C++), only used the noise and random functions to animate things! Cheers __________________ "No pressure, no diamonds" Thomas Carlyle

A little bit about who we are