Exportcode, file naming

Oct 3, 2013 at 1:37pm

Exportcode, file naming

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

#266973
Oct 5, 2013 at 11:36am

Nobody ?

#267132
Oct 8, 2013 at 12:17am

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:

#267410
Oct 8, 2013 at 12:18am

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:

#267411
Oct 8, 2013 at 11:55pm

Thank you Wesley, renaming works fine.

Y.

#267528

You must be logged in to reply to this topic.