Page 1 of 1

getting an Emitter's export path

Posted: Thu Feb 17, 2011 1:13 pm
by FlorianK
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?

Re: getting an Emitter's export path

Posted: Thu Feb 17, 2011 1:17 pm
by Alex
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.

Re: getting an Emitter's export path

Posted: Thu Feb 17, 2011 3:21 pm
by FlorianK
Ok, thank you very much!