Forums > Gen

Exportcode, file naming

October 3, 2013 | 1:37 pm

Hi,

I’m trying to use the "exportcode" message to jit.gl.pix to export a shader.
My goal is to able to use the "dispose" and "read…" message to be able to switch it on and off.
But I don’t understand how to change the name of the file, which is necessary if I want to export a few of them.
If I change the"gen_exported" part of the name, it doesn’t work anymore.
You can try with the jit.gl.pix help file: export the jxs file and then change the name.
Passing the name with the exportcode message doesn’t work either.
What did I miss ?

Thanks


October 5, 2013 | 11:36 am

Nobody ?


October 8, 2013 | 12:17 am

Hi,
Currently it names the files off of the @gen attribute. It should do like gen~ though and use the @title or @name attributes if @gen isn’t set. I’ll file a bug report.

As for renaming the files, if you do that, you have to rename the file references inside the .jxs file. So, if you have:

gen_exported.fp.glsl
gen_exported.vp.glsl
gen_exported.jxs

You need to change these names inside gen_exported.jxs:


October 8, 2013 | 12:18 am

Hi,
Currently it names the files off of the @gen attribute. It should do like gen~ though and use the @title or @name attributes if @gen isn’t set. I’ll file a bug report.

As for renaming the files, if you do that, you have to rename the file references inside the .jxs file. So, if you have:

gen_exported.fp.glsl
gen_exported.vp.glsl
gen_exported.jxs

You need to change these names inside gen_exported.jxs:


October 8, 2013 | 11:55 pm

Thank you Wesley, renaming works fine.

Y.


Viewing 5 posts - 1 through 5 (of 5 total)