...
RfB uses the prman
command-line mechanism as described above, including the use of the RMAN_STATS_CONFIG_PATH
override environment variable. Interactive configuration of live stats is available in the Blender preferences.
Katana
...
RenderMan for Katana will search for a configuration file with the following precedence:
The prmanGlobalStatements.stats
options take precedence over all other options if they are configured (see OpScript below).$RMAN
...
_STATS_CONFIG_PATH
...
/stats.ini
if the environment variable is set
...
- .
$CWD/stats.ini
...
$RMANTREE/etc/stats/ini
Advanced configuration is
If no file is found the default configuration will be used (live stats enabled, no listeners, no JSON report)
Additional configuration is also available in RfK through the following attributes:
prmanGlobalStatements.stats.configPath
(default: "“.:$RMANTREE/etc"
)
prmanGlobalStatements.stats.configFile
(default: "stats.ini"
)
These attributes are currently not exposed in PrmanGlobalStatements, they must be set via AttributeSet or OpScript at the moment. Below is an OpScript which exposes these two attributes as user args with defaults as listed above. Copy and paste into your Katana scene and modify the path and config file name as needed.
Code Block |
language Expand |
---|
xml | title | Configuration OpScript |
---|
collapse | true |
---|
|
<katana release="6.5v1.010030b" version="6.0.1.000003">
<node name="__SAVE_exportedNodes" type="Group">
<node baseType="OpScript" edited="true" name="AdvancedStatsConfiguration" ns_colorb="0.05" ns_colorg="0.26" ns_colorr="0.09" ns_errorGlow="0.0" ns_fromContext="legacy" selected="true" type="OpScript" x="493.466" y="-240.278">
<port name="i0" source="PrmanGlobalStatements.out" type="in"/>
<port name="out" type="out"/>
<group_parameter name="AdvancedStatsConfiguration">
<string_parameter name="CEL" value="((/root))"/>
<string_parameter name="location" value="/root/world/location"/>
<group_parameter name="script">
<string_parameter name="lua" value=" -- Default: ''stats.ini'
'
 local configFile = Interface.GetOpArg(''user.configFile''):getValue()


-- Default: ''.:${RMANTREE}/etc'
'
-- Can be overriden with RMAN_STATS_CONFIG_PATH

local configPath = Interface.GetOpArg(''user.configPath''):getValue()

Interface.SetAttr(''prmanGlobalStatements.stats.configFile'', StringAttribute(configFile))

Interface.SetAttr(''prmanGlobalStatements.stats.configPath'', StringAttribute(configPath))


"/>
</group_parameter>
<string_parameter name="executionMode" value="immediate"/>
<string_parameter name="applyWhere" value="at locations matching CEL"/>
<string_parameter name="applyWhen" value="during op resolve"/>
<string_parameter name="modifierNameMode" value="node name"/>
<string_parameter name="modifierName" value="modifier"/>
<string_parameter name="resolveIds" value=""/>
<number_parameter name="recursiveEnable" value="0"/>
<string_parameter name="disableAt" value=""/>
<string_parameter name="inputBehavior" value="by index"/>
<number_parameter name="multisampleUserOpArgs" value="0"/>
<group_parameter hints="{}" name="user">
<string_parameter hints="{'widget''widget': 'fileInput''fileInput'}" name="configFile" value="telemetry_stats.ini"/>
<string_parameter expression="''.:''+getenv('HOME''HOME', '.''.')+''/stats/configs''" hints="{}" name="configPath"/>
</group_parameter>
</group_parameter>
</node>
</node>
</katana>
|
Maya
If the RMAN_STATS_CONFIG_PATH
environment variable is set RfM will use that search path to look for a file named stats.ini.
...
If no file is found, or if that environment variable is not set then the default configuration will be used.
...
.