rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | SceneStringConverter |
Functions | |
def | get_user_tokens () |
def | get_all_tokens () |
def | expand_string (string, display=None, glob_sequence=False, frame=None, jobid=None, asFilePath=False) |
def | converter_validity_check () |
def | lock_jobid (value) |
def | unlock_jobid () |
def | set_var (nm, val) |
def | get_var (nm) |
def | reset_vars () |
def | get_str_attr (nodeattr, glob_sequence=False, frame=None) |
Variables | |
list | PAD_FMT = ['%d', '%01d', '%02d', '%03d', '%04d'] |
def rfm2.api.strings.converter_validity_check | ( | ) |
def rfm2.api.strings.expand_string | ( | string, | |
display = None , |
|||
glob_sequence = False , |
|||
frame = None , |
|||
jobid = None , |
|||
asFilePath = False |
|||
) |
expand a string containing tokens. Args: - string (str): a string that may or may not contain tokens. Kwargs: - display (str): the name of a rmanDisplay node that should be used to update the <aov> and <ext> tokens. Returns: - The expanded string.
def rfm2.api.strings.get_all_tokens | ( | ) |
Returns all tokens from the render globals as a dict. This includes the user tokens.
def rfm2.api.strings.get_str_attr | ( | nodeattr, | |
glob_sequence = False , |
|||
frame = None |
|||
) |
getAttr a maya string plug and return its expanded value if it contains tokens. Args: - nodeattr (str): the plug, i.e. 'PxrDomeLight1.lightColorMap'. Returns: - expanded value of the attribute.
def rfm2.api.strings.get_user_tokens | ( | ) |
Return the string substitution user tokens as a dict.
def rfm2.api.strings.get_var | ( | nm | ) |
def rfm2.api.strings.lock_jobid | ( | value | ) |
Sets the jobid value so it remains constant until unlock_jobid() is called. See set_locked_jobid() above for details.
def rfm2.api.strings.reset_vars | ( | ) |
def rfm2.api.strings.set_var | ( | nm, | |
val | |||
) |
def rfm2.api.strings.unlock_jobid | ( | ) |
Unlock the jobid so it may be set to another value.
list rfm2.api.strings.PAD_FMT = ['%d', '%01d', '%02d', '%03d', '%04d'] |