Package autodesk_toxik :: Module precompmodule
[frames] | no frames]

Module precompmodule

Defines a wrapper around a precomp module: the PrecompModule class.

A precomp module is a .precomp file or any python module that implements a specific interface used by the Composite precomp import script to fetch information about render passes, layers and camera views from any 3D application.

The Composite precomp import script in fact talks to the wrapper which takes care of various things:

Classes
  InvalidPrecompModule
Exception thrown by the PrecompModule wrapper when the given precomp module doesn't honor the expected interface.
  PrecompModuleError
Exception thrown by the PrecompModule wrapper class when an exception is raised from the actual precomp module.
  PrecompModule
Precomp module wrapper.
  PrecompObject
Precomp module object wrapper.
  Scene
Class representing a 3D scene.
  RenderCamera
Class representing a render camera.
  RenderLayer
Class representing a render layer, i.e.
  RenderPass
Class representing a render pass, i.e.
Functions
 
reportPrecompError(meth)
Decorator that catches any exception and raises a PrecompModuleError exception instead.
tuple
getSignatureAndDoc(frame, self, className=None, funcName=None, removeSelfArg=False)
Returns: A tuple with the function/method signature and docstring of the given frame.
Function Details

reportPrecompError(meth)

 

Decorator that catches any exception and raises a PrecompModuleError exception instead.

Parameters:
  • meth - Method.

getSignatureAndDoc(frame, self, className=None, funcName=None, removeSelfArg=False)

 
Parameters:
  • frame (frame object)
  • self - The instance that holds the frame.
  • className (str) - Can be used to override 'self.__class__.__name__' and it can be set to an empty string to signify no class.
  • funcName (str) - Can be used to override the function name of the given frame.
  • removeSelfArg (bool) - Indicates whether the first arguments should be put in the returned signature.
Returns: tuple
A tuple with the function/method signature and docstring of the given frame.