Textures publishing - added additional example for textures

This commit is contained in:
Petr Kalis 2021-07-26 13:57:23 +02:00
parent c250df6b57
commit abda7f9afa

View file

@ -49,19 +49,36 @@ Provide regex matching pattern containing regex groups used to parse workfile na
build name.) build name.)
Example: Example:
```^([^.]+)(_[^_.]*)?_v([0-9]{3,}).+``` - parses `corridorMain_v001` into three groups:
- pattern: ```^([^.]+)(_[^_.]*)?_v([0-9]{3,}).+```
- with groups: ```["asset", "filler", "version"]```
parses `corridorMain_v001` into three groups:
- asset build (`corridorMain`) - asset build (`corridorMain`)
- filler (in this case empty) - filler (in this case empty)
- version (`001`) - version (`001`)
In case of different naming pattern, additional groups could be added or removed. Advanced example (for texture files):
- pattern: ```^([^_.]+)_([^_.]+)_v([0-9]{3,})_([^_.]+)_({color_space})_(1[0-9]{3}).+```
- with groups: ```["asset", "shader", "version", "channel", "color_space", "udim"]```
parses `corridorMain_aluminiumID_v001_baseColor_linsRGB_1001.exr`:
- asset build (`corridorMain`)
- shader (`aluminiumID`)
- version (`001`)
- channel (`baseColor`)
- color_space (`linsRGB`)
- udim (`1001`)
In case of different naming pattern, additional groups could be added or removed. Number of matching groups (`(...)`) must be same as number of items in `Group order for regex patterns`
##### Workfile group positions ##### Workfile group positions
For each matching regex group set in previous paragraph, its ordinal position is required (in case of need for addition of new groups etc.) For each matching regex group set in previous paragraph, its ordinal position is required (in case of need for addition of new groups etc.)
Number of groups added here must match number of parsing groups from `Workfile naming pattern`.
Same configuration is available for texture files. Number of groups added here must match number of parsing groups from `Workfile naming pattern`.
##### Output names ##### Output names