getting an Emitter's export path

Post Reply
User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

getting an Emitter's export path

Post by FlorianK » Thu Feb 17, 2011 1:13 pm

Hi,

I am a bit confused about how to get an emitter's export Path. It seems like I had to do this first:

Code: Select all

string getExportResourcePath(int)
This accepts an int as argument, and there is supposed to ba an id for EXPORT_PARTICLES_BIN, EXPORT_PARTICLES_ASC etc. Given teh correct argument, this will return the emitter's export path.

But how do I get those int values corresponding for e.g. EXPORT_PARTICLES_BIN?

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: getting an Emitter's export path

Post by Alex » Thu Feb 17, 2011 1:17 pm

Hi Florian,

you are supposed to use the constant instead of its value underneath:

Code: Select all

path = emitter.getExportResourcePath( EXPORT_PARTICLES_BIN )
However, if for some reason you'd rather like provide the actual value, you can export a XML file for that emitter and have a look at its "io-entries" section. There you will find the related id for every file.
Alex Ribao
RealFlow Team
Next Limit Technologies

User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

Re: getting an Emitter's export path

Post by FlorianK » Thu Feb 17, 2011 3:21 pm

Ok, thank you very much!

Post Reply