1. Home
  2. Docs
  3. PopcornFX v2.3
  4. Baking
  5. Resource ovens
  6. Oven: Base

Oven: Base

COvenBakeConfig_Base

All ovens inherit from COvenBakeConfig_Base, and share these base properties
 

Property nameDefault valueDescription
BakeTarget<empty>string, contains the name of the build target this config applies to. an empty string means all build targets
CommandLine_PreBake_Windows<empty>Command-line executed BEFORE the file has been baked, when the baker is run on a windows OS
CommandLine_PreBake_Linux<empty>Command-line executed BEFORE the file has been baked, when the baker is run on a linux OS
CommandLine_PreBake_MacOsX<empty>Command-line executed BEFORE the file has been baked, when the baker is run on a MacOsX OS
CommandLine_Windows<empty>Command-line executed AFTER the file has been baked, when the baker is run on a windows OS
CommandLine_Linux<empty>Command-line executed AFTER the file has been baked, when the baker is run on a linux OS
CommandLine_MacOsX<empty>Command-line executed AFTER the file has been baked, when the baker is run on a MacOsX OS
OverrideDefaultBakeWithCmdlinefalseDo not execute default baking, only the CommandLine_* commands
AlwaysMkdirTargetfalseAlways create the $(TargetDir) directory chain just after CommandLine_PreBake, even if OverrideDefaultBakeWithCmdline is active

 
The command-lines can contain the following special tokens:
 

  • $(InputPath) : Full path to the source asset, including the extension
  • $(InputDir) : Full path to the source directory
  • $(InputExt) : Extension of the original file, without the dot ‘.’
  • $(FileName) : Filename, without the extension
  • $(TargetPath) : Full path to the target file, with the extension
  • $(TargetDir) : Full path to the target directory

 

You can use environment variables in the command-line, using the regular platform’s syntax, and invoke SDK-specific texture conversion tools based on the platform (like gxt/gnf converters, do not hesitate to contact us if you have any trouble with this)
(See the Texture oven for a specific example)

Still stuck? Contact us
Was this article helpful to you? Yes No

How can we help?