Package qb :: Package utils :: Module qbTokens
[hide private]
[frames] | no frames]

Module qbTokens

source code

QB_* token regular expressions and functions

Functions [hide private]
tuple
evaluateQBTokens(cmd, fRange, padding=1)
Replace all QB_* tokens with the appropriate values from the object's frame range or job stage
source code
Variables [hide private]
  QB_FRAME_TOKEN_RGX = [re.compile(r'QB_FRAME_NUMBER'), re.compi...
  __package__ = 'qb.utils'
Function Details [hide private]

evaluateQBTokens(cmd, fRange, padding=1)

source code 

Replace all QB_* tokens with the appropriate values from the object's frame range or job stage

fRange is either the job's frame range value, or the agenda item's specific frame range

Returns: tuple
Both the cmd with all QB_FRAME* tokens evaluted, and a dictionary of all tokens and their values.

Variables Details [hide private]

QB_FRAME_TOKEN_RGX

Value:
[re.compile(r'QB_FRAME_NUMBER'),
 re.compile(r'QB_FRAME_START'),
 re.compile(r'QB_FRAME_END'),
 re.compile(r'QB_FRAME_STEP'),
 re.compile(r'QB_FRAME_RANGE')]