#NEWLINE# def SetMatrix( self , matrix , worldSpace = False , _type = 'Transformation' ) : #NEWLINE# #INDENT# '\n        Set the matrix\n        @param worldSpace: world space matrix (True/False) Default False\n        @param _type: matrix type (Transformation, Translation, Rotation, Scaling, Center, All)\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . component . SetMatrix ( matrix , self . kMatrixTypeDict [ _type ] , worldSpace ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise Exception ( ( "Invalid vector type '%s'. Valid types are: %s" % ( _type , ', ' . join ( self . kMatrixTypeDict . keys ( ) ) ) ) )