Go to: Synopsis. Return value. MEL examples.

Synopsis

addFrameRenderCallback (string $beforeOrAfter, string $commandString)

This proc registers a user-defined command string which will be triggered before or after rendering a frame.

Return value

None

Arguments

Variable Name Variable Type Description
$beforeOrAfterstringA string, either "before" or "after", to specify the callback type.
$commandStringstringThe callback function to be triggered before or after rendering a frame.

MEL examples

	addFrameRenderCallback("after", "clearUpMyRendererResource()");
	removeFrameRenderCallback("after", "clearUpMyRendererResource()");