Is it possible to write geometry cache file from Maya API?

Is it possible to write geometry cache file from Maya API?

Anonymous
Not applicable
704 Views
7 Replies
Message 1 of 8

Is it possible to write geometry cache file from Maya API?

Anonymous
Not applicable
Hello

¿If possible write geometry cache file from Maya API?

I'm writing plugin. It create mesh and I have the vertex position for each frame in data file. ¿Some class for write geometry cache?

Thank you
0 Likes
705 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
isn`t default Maya geometry cache useful?
0 Likes
Message 3 of 8

Anonymous
Not applicable
isn`t default Maya geometry cache useful?

Of course is useful. But I'm writing a plugin and I want build the default Maya geometry cache directly through Maya API and not to force user go to menu.

I'm sorry my bad english, I hope explain my problem correctly.
0 Likes
Message 4 of 8

Anonymous
Not applicable
ok I`m just curious, because at MPC we have our own geometry cache system and I thought Maya default geoCache might be no good, so you want to make your own. Maybe somethings more suitable your pipeline...
0 Likes
Message 5 of 8

Anonymous
Not applicable
I`ve done some searching and it looks like most of work is done by cacheFile command (and some scripts built around it). Also there is some example plug-in (in python) for caching geometries (look into your Maya docs):

geometryCacheConverter
Produces MEL command convertGeometryCache

This example converts geometry cache files into an ASCII format through the IFF file API.

This plug-in only covers one aspect of parsing geometry cache data. Please see the cacheFileExample.py for a more comprehensive example. This Python script shows how to parse and interpret Maya caches (.mc). This example avoids the use of specialized IFF code so that any standalone application can learn to parse Maya cache files.
0 Likes
Message 6 of 8

Anonymous
Not applicable
Ok. Thank you.

I'm reading this python code. It can help me to build a function for convert ASCII to Geometry Cache file. I try it. Thank you again.
0 Likes
Message 7 of 8

Anonymous
Not applicable
hey @ syntetik
as its not possible to cache out transform animation over to components .. any alternative u did..in ur proprietry system.. have you checked on new API example with 2009 (xmlGeoCache.cpp) i think its pretty much what he is looking 4..( my problem is i dont understnad cpp , python is okay)

sunnyC.
0 Likes
Message 8 of 8

Anonymous
Not applicable
yep, I think I can say that we can cache out meshes that are transformed as if only their points were moving.
I wasn`t checking that xmlGeoCache.cpp... but sounds cool, big help from Autodesk with those examples for productions to get on speed with developing their own pipelines.
0 Likes