Game Logic: LibLoad

LibLoad(blend, type)
  • Converts the all of the datablocks of the given type from the given blend.

blend:

  • Type: string
  • The path to the blend file (or the name to use for the library if data is supplied)
type:
  • Type: string
  • The datablock type: “Action”, “Mesh” or “Scene”
LibLoad(blend, type, data)
  • Converts the all of the datablocks of the given type from the given blend.

blend:

  • Type: string
  • The path to the blend file (or the name to use for the library if data is supplied)
type:
  • Type: string
  • The datablock type: “Action”, “Mesh” or “Scene”
data:
  • Type:  bytes
  • Binary data from a blend file
LibLoad(blend, type, data, load_actions)
  • Converts the all of the datablocks of the given type from the given blend.

blend:

  • Type: string
  • The path to the blend file (or the name to use for the library if data is supplied)
type:
  • Type: string
  • The datablock type: “Action”, “Mesh” or “Scene”
data:
  • Type:  bytes
  • Binary data from a blend file
load_actions:
  • Type:  boolean
     
  • Scene type only
  • 0 = False = don't load actions
     
  • 1 = True = Search for and load all actions in a given Scene and not just the “active” actions
LibLoad(blend, type, data, load_actions, debug)
  • Converts the all of the datablocks of the given type from the given blend.

blend:

  • Type: string
  • The path to the blend file (or the name to use for the library if data is supplied)
type:
  • Type: string
  • The datablock type: “Action”, “Mesh” or “Scene”
data:
  • Type:  bytes
  • Binary data from a blend file
load_actions:
  • Type:  boolean
     
  • Scene type only
  • 0 = False = don't load actions
     
  • 1 = True = Search for and load all actions in a given Scene and not just the “active” actions
debug:
  • Type:  boolean
  • 0 = False = Don't print debug information
     
  • 1 = True = Print debug information
Sample Code

################## convert the datablocks

# import bge
import bge

????????