Forum

  • Index
  •  » Rendering
  •  » define rib filename and environment variables in general

#1 2017-02-08 19:06:34

bonovasitch
Member

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,

$(RIBS)/$(SCENE)_$05f_?_?_layer.rib.gz

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.

Offline

 

#2 2017-02-09 10:20:36

Ben
Guerilla dev, the guy to hug

Re: define rib filename and environment variables in general

Hi Bonovasitch,

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.

Cheers,
Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 
  • Index
  •  » Rendering
  •  » define rib filename and environment variables in general

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB