Exportcode, file naming

    Oct 03 2013 | 8:37 pm
    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 ?

    • Oct 05 2013 | 6:36 pm
      Nobody ?
    • Oct 08 2013 | 7:17 am
      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:
      You need to change these names inside gen_exported.jxs:
    • Oct 09 2013 | 6:55 am
      Thank you Wesley, renaming works fine.