motndy100_.40500E+00microm_100_7_S_SS_.10000E+06_ 1_ 1_ 1_ 0_ 0_flowdirn_ 1 1 0.txt (243.2 KB, 244 views)
#
2
25-01-2011
, 05:32 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
I would create a Python script that reads in the file and parses it, then iterates through the required number of particles, with a series of setAttr functions for translate channels. You can look in the documentation for the exact syntax of setAttr. I hope that helps. A more informative thread title will probably get more help faster FYI.
#
3
25-01-2011
, 07:36 PM
Registered User
Join Date: Jan 2011
thanks for the reply. But what you have wrote is completely "chinese" for me. What do I do with python? I have no experience in python. moreover, i thought it would as easy as reading the data file through some Maya function and defining the variables. The required number of particles is already decided. I want generate a movie for all particles in the text file e.g. 100 in the attached file. in each row there are 301 columns (1 time + 3(x,y,z)* Nparticles). Each row corresponds to a new time coordinates of 100 particles. I hope I am clear. thanks once again. please see if you could help me further.
#
4
25-01-2011
, 07:42 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Well since you've got output from a fortran program, I assumed you were familiar with the process of making a script/program. Python is a pretty high-level language, by which I mean it is relatively simple to read/understand and write.
To my knowledge, Maya doesn't have any built in "functions" to read particle location data. It is not that type of software. Declaring variables as you say, doesn't happen in Maya either, except if you create a script. Creating 100 particles and setting the location of one particle at one time is pretty simple. I don't have maya here right now, but I can see about that when I get home. However, reading in your data file might be more difficult. I don't know the best way to approach that.
You may not post new threads |
You may not post replies |
You may not post attachments |
You may not edit your posts |
BB code is On |
Smilies are On |
[IMG] code is On |
HTML code is Off
|