KX_LibLoadStatus
Base class: EXP_PyObjectPlus
An object providing information about a LibLoad() operation.
# Print a message when an async LibLoad is doneimport Range
def finished_cb(status): print("Library (%s) loaded in %.2fms." % (status.libraryName, status.timeTaken))
Range.logic.LibLoad('myblend.blend', 'Scene', asynchronous=True).onFinish = finished_cbonFinish
Section titled “onFinish”A callback that gets called when the lib load is done.
Type: callable
finished
Section titled “finished”The current status of the lib load.
Type: boolean
progress
Section titled “progress”The current progress of the lib load as a normalized value from 0.0 to 1.0.
Type: float
libraryName
Section titled “libraryName”The name of the library being loaded (the first argument to LibLoad).
Type: string
timeTaken
Section titled “timeTaken”The amount of time, in seconds, the lib load took (0 until the operation is complete).
Type: float
