define rib filename and environment variables in general
Is there a way to define the name of the rib file generated by Guerilla?
It can't find a documented way and the naming doesn't seem driven by the other types of naming preferences.
What I'm getting is the pattern,
The "?" are each three digit numbers. Can you elaborate on what they represent?
And then further to this question, is there a way to print out all of the environment variables set within Guerilla? I know about the os.getenv lua command but it may be helpful to utilize variables that have already been set.
- Guerilla dev, the guy to hug
Re: define rib filename and environment variables in general
When generating the render files, Guerilla writes them in specific directories. For instance, render scripts are generated into $(JOBS), and rib files are generated into $(RIBS). These $(JOBS) and $(RIBS) are environment variables, as you mentioned.
The "?" are internal counters that Guerilla uses to keep track of dependencies (e.g. frames jobs are dependent on a rib generation job, or a frame gathering job depends on frames jobs ...) These are not very meaningful, only the Lua scripts are supposed to reference them.
We're currently changing this scheme in Guerilla 2.0 and making this more flexible, as this is cumbersome for developers to try to guess what will be generated and where.
The environment variables set in Guerilla can be accessed with environmnent.current (in Lua) or lua.globals ().environmnent.current in Python. These are only the values set in Guerilla local and project environment, not the predefined ones though.
Benjamin 'Ben' Legros