Class maintaining an up-to-date StringExpression object.
def rfm2.api.strings.SceneStringConverter.__init__ |
( |
|
self | ) |
|
def rfm2.api.strings.SceneStringConverter.expand |
( |
|
self, |
|
|
|
string, |
|
|
|
display = None , |
|
|
|
frame = None |
|
) |
| |
Expand the <tokens> in the string.
Args:
- string (str): The string to be expanded.
Kwargs:
- display (str): The display being considered. This is necessary if your
expression contains <aov> or <ext>
Returns:
- The expanded string
def rfm2.api.strings.SceneStringConverter.set_display |
( |
|
self, |
|
|
|
display |
|
) |
| |
Sets the <aov> and <ext> tokens based on the display.
Args:
- display (str): the name of the display node.
def rfm2.api.strings.SceneStringConverter.set_token |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
Sets a token's value in the StringExpression object.
Args:
- key (str): the token's name
- value (str): the token's value
def rfm2.api.strings.SceneStringConverter.update |
( |
|
self | ) |
|
Create a new StringExpression and configures it for the current state
of the scene.
rfm2.api.strings.SceneStringConverter.expr |
The documentation for this class was generated from the following file:
- /data/wlw/renderman_root/rat/apps/rfm/scripts/rfm2/api/strings.py