View Full Version : ASCII import using xpresso
mt_sabao 01-16-2006, 07:10 PM Hi folks, i´ve already done a search on this one, found some things but nothing that can help me. Basically i want to know if there´s some way (through xpresso or in extreme case c.o.f.f.e.e.) of importing ascii data (x,y,z for example) and using this data to set the coordinates of an object.
As usual, tanks in advance.
Luis C.
|
|
Simon Wicker
01-16-2006, 09:59 PM
there already is a plug-in from maxon built into cinema for this called ascii animation import.
cheers, simon w.
mt_sabao
01-16-2006, 10:16 PM
Hi simon, thank you for your reply. i know this plugin, but i´m i able to use it the way i described in the previous post? After all, its called "animation import"...
Thanks
Simon Wicker
01-16-2006, 10:28 PM
i use it all the time for importing animated cameras from maya, exporting the xyz position of a maya camera as a tab delimited text file and then bringing that into cinema through the ascii animation import plug-in. is this not what you wanted to do? it should work in exactly the same way for animated objects.
cheers, simon w.
mt_sabao
01-17-2006, 10:51 AM
Hi simon, hi all.
What i exactly want to do is:
I have a file with the list of postions (x, y, z) of thousands of objects. I was wondering if there's any xpresso node (or coffe code) which can access this file, and feed each line of the file (each set of x, y, z coord) to and object. Willl i be able to do this using the animation import?
Thanks for your patience
Luis
I would be interested too. And on a sidenote: if you have this XYZ-data file, is it possible to convert these points to a mesh (landscape) within Cinema? I know it is possible with Rhino and some other apps. And Patch-it can do it but is still quite a hassle...
odo
noseman
01-17-2006, 11:23 AM
I don't know if it will work, but ry this ooo.
Go to "Structure manager" select the file menu (of the Structure manager) and choose "Import ASCII data". It may work.
On the other hand mt_sabao, even though I don't know COFFEE very well (or at all), it shouldn't be difficult to do.
The routine should be something like:
(this is not actual code it is merely an analysisi of the routine)
1. get number of objects under a null = n
2. get line n from text file
3. place object n from list at x(n), y(n), z(n) position
4. increment n by one n=n+1
5. loop until objects are finished
Or something like this.
Hope this helps.
mt_sabao
01-17-2006, 12:04 PM
thanks noseman.
Yeah, the algorithm is pretty simple. This could inclusively be done in xpresso, with coffee node to read the file (if possible at all). Just need some help from the coders around here.
Thanks in advance
Luis
CGTalk Moderation
01-17-2006, 12:04 PM
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.