parameters: (type, obj, scene)
docstring: This method modify the Assimp data structures
      to make them easier to work with in Python.
  
      Supported operations:
       - MESH: replace a list of mesh IDs by reference to these meshes
       - ADDTRANSFORMATION: add a reference to an object's transformation taken from their associated node.
  
      :param type: the type of modification to operate (cf above)
      :param obj: the input object to modify
      :param scene: a reference to the whole scene
docstring_summary: This method modify the Assimp data structures
      to make them easier to work with in Python.
docstring_tokens: This method modify the Assimp data structures to make them easier to work with in Python .
function: def pythonize_assimp(type, obj, scene):
      """ This method modify the Assimp data structures
      to make them easier to work with in Python.
  
      Supported operations:
       - MESH: replace a list of mesh IDs by reference to these meshes
       - ADDTRANSFORMATION: add a reference to an object's transformation taken from their associated node.
  
      :param type: the type of modification to operate (cf above)
      :param obj: the input object to modify
      :param scene: a reference to the whole scene
      """
  
      if type == "MESH":
          meshes = []
          for i in obj:
              meshes.append(scene.meshes[i])
          return meshes
  
      if type == "ADDTRANSFORMATION":
          def getnode(node, name):
              if node.name == name: return node
              for child in node.children:
                  n = getnode(child, name)
                  if n: return n
  
          node = getnode(scene.rootnode, obj.name)
          if not node:
              raise AssimpError("Object " + str(obj) + " has no associated node!")
          setattr(obj, "transformation", node.transformation)
function_tokens: def pythonize_assimp ( type , obj , scene ) : if type == "MESH" : meshes = [ ] for i in obj : meshes . append ( scene . meshes [ i ] ) return meshes if type == "ADDTRANSFORMATION" : def getnode ( node , name ) : if node . name == name : return node for child in node . children : n = getnode ( child , name ) if n : return n node = getnode ( scene . rootnode , obj . name ) if not node : raise AssimpError ( "Object " + str ( obj ) + " has no associated node!" ) setattr ( obj , "transformation" , node . transformation )