config.xml - eyeonSoftware/epp GitHub Wiki
The config.xml in the EPP_ROOT folder is the main configuration file for epp. Here an example:
<?xml version='1.0' encoding='utf-8'?>
<settings>
<paths>
<projectdir>C:\projects</projectdir>
<fuscriptdir>C:\Users\Public\Documents\eyeon\Fusion\Scripts</fuscriptdir>
<genscriptdir>C:\Program Files\eyeon\Generation [AM]\scripts</genscriptdir>
</paths>
<shotname>
<maxlength>0</maxlength>
<mask></mask>
<replacewhitespace>True</replacewhitespace>
<validation>[a-zA-Z0-9_ ]+</validation>
</shotname>
<projectname>
<maxlength>0</maxlength>
<mask></mask>
<replacewhitespace>True</replacewhitespace>
<validation>[a-zA-Z0-9_ ]+</validation>
<widget>QLineEdit</widget>
</projectname>
<standin>
<fontblue>255</fontblue>
<fontgreen>255</fontgreen>
<fontred>255</fontred>
<fontitalic>False</fontitalic>
<fontbold>False</fontbold>
<fontsize>0.15</fontsize>
<font>Lucida Sans Unicode</font>
<y>0.51</y>
<x>0.08</x>
<tag>True</tag>
<source>standin.png</source>
</standin>
</settings>
The import an mandatory part is the setting.paths entries as they define how to find the project root folder, script folders etc.
shotname and project allows customization of the input fields for the add_project and add_shot interfaces. The inputs allow the user to set the project name and shot name that is going to be created. To be able to restrict the input based on studio conventions use the following options:
- maxlenght: Limit the length of the text input
- (int) 0 being no limit
- replacewhitespace: whitespaces to be replaced with _
- (bool) True|False
- validation: RegExp that limits the input to certain patterns/character
- (string) [a-zA-Z0-9_ ]+
- Caution: In order for the replace whitespace to work, whitespaces and _ must be allowed
- widget: TODO In future custom widgets as plugins might be used. Defaults to QLineEdit for now.
- mask: Defines a mask to limit certain input patters. All the above will be overriden if set.
- (string) Compare: http://doc.qt.digia.com/4.7/qlineedit.html#inputMask-prop
The standin allows customization of the placeholder standin image that is used in generation when creating shots.
- tag: Enables or disables the taging of the shotname on the standin
- (bool) True|False
- source: Filename of the standin template image.
- (string) must exist in templates images folder
- fontred: font color red component
- (int) 0-255
- fontgreen: font color green component
- (int) 0-255
- fontblue: fontcolor blue component
- (int) 0-255
- fontitalic: font weight to be italic.
- (bool) True|False
- fontitalic: font weight to be bold.
- (bool) True|False
- fontsize: fontsize relative to image height.
- (float) 0.0-1.0
- font: font family name
- (string) compare http://doc.qt.digia.com/4.7/qfont.html#setFamily
- x: X offset relative to width.
- (float) 0.0-1.0
- y: Y offset relative to height.
- (float) 0.0-1.0