Class maintaining an up-to-date StringExpression object.
◆ __init__()
def rfm2.api.strings.SceneStringConverter.__init__ |
( |
|
self | ) |
|
◆ expand()
def rfm2.api.strings.SceneStringConverter.expand |
( |
|
self, |
|
|
|
string, |
|
|
|
display = None , |
|
|
|
frame = None , |
|
|
|
asFilePath = False |
|
) |
| |
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>
- frame (int): An optional frame number to expand <f>, <f4>, etc.
Returns:
- The expanded string
◆ get_token()
def rfm2.api.strings.SceneStringConverter.get_token |
( |
|
self, |
|
|
|
key |
|
) |
| |
Gets a token's value in the StringExpression object.
Args:
- key (str): the token's name
◆ reset_jobid()
def rfm2.api.strings.SceneStringConverter.reset_jobid |
( |
|
self | ) |
|
reset rmanGlobals.jobid to '', so that StringExpression.set_jobid()
may generate a new value.
◆ set_display()
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.
◆ set_locked_jobid()
def rfm2.api.strings.SceneStringConverter.set_locked_jobid |
( |
|
self, |
|
|
|
value |
|
) |
| |
Sets the current jobid to a specific string value. If None is passed,
we let StringExpression object generate a new jobid and store it.
NOTE: The jobid is stored in rmanGlobals.jobid. If its value is '',
StringExpression.set_jobid() will generate a new value but NOT store it
on rmanGlobals.
Arguments:
value {str} -- the jobid value
◆ set_token()
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
◆ update()
def rfm2.api.strings.SceneStringConverter.update |
( |
|
self | ) |
|
Create a new StringExpression and configures it for the current state
of the scene.
◆ expr
rfm2.api.strings.SceneStringConverter.expr |
The documentation for this class was generated from the following file:
- /Users/plp/Perforce/plp_thebridge_rman_24_dev/rat/apps/rfm/scripts/rfm2/api/strings.py