Package qb :: Package backend :: Module afterEffectsLogParser :: Class AERenderLogParser
[hide private]
[frames] | no frames]

Class AERenderLogParser

source code


This LogParser class is for AfterEffects sequence renders.

Instance Methods [hide private]
float
calcProgress(self, progressMatchStr, qbTokens)
Calculate the internal progress of an AfterEffects sequence render.
source code

Inherited from logParser.LogParser: __init__, parse

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

calcProgress(self, progressMatchStr, qbTokens)

source code 

Calculate the internal progress of an AfterEffects sequence render.

AfterEffects progress output does not include the frame number, but rather the 1-based index
of the frame in the chunk.

eg: if rendering a 5 frame chunk from frames 6-10, the output will contain:
    
    PROGRESS:  0:00:09:05 (1): 0 Seconds
    PROGRESS:  0:00:09:05 (2): 0 Seconds
    PROGRESS:  0:00:09:05 (3): 0 Seconds
    PROGRESS:  0:00:09:05 (4): 0 Seconds
    PROGRESS:  0:00:09:05 (5): 0 Seconds

So this method finds the AE frame number (1-5 in this case), then determines how many frames
are in the chunk, and then calculates the completion value for the chunk. 

@param progressMatchStr: the value used to derive the progress within the chunk.  It is
simply the progress percentage integer matched in the application output.

@type progressMatchStr: C{str}

@param qbTokens: a dictionary containing all the QB_FRAME* values to aid in calculation the
in-chunk progress.

@type qbTokens: C{dict}

@return: The amount of work complete for the item, expressed as a float between 0 and 1.0, 1.0 being completely done.
@rtype: C{float}

Parameters:
  • progressMatchStr - the value used to derive the progress within the chunk. It is simply the progress percentage integer matched in the application output.
Returns: float
The amount of work complete for the item, expressed as a float between 0 and 1.0, 1.0 being completely done.
Overrides: logParser.LogParser.calcProgress