from panda3d.core import ModelLoadRequest
- class ModelLoadRequest
A class object that manages a single asynchronous model load request. Create a new ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
- __init__(name: str, filename: Filename, options: LoaderOptions, loader: Loader)
Create a new
ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
- property filename Filename
Returns the filename associated with this asynchronous
- get_model() PandaNode
Returns the model that was loaded asynchronously, if any, or null if there was an error. It is an error to call this unless
- get_options() LoaderOptions
- is_ready() bool
Returns true if this request has completed, false if it is still pending or if it has been cancelled. When this returns true, you may retrieve the model loaded by calling
get_model(). Equivalent to
req.done() and not req.cancelled().
- property loader Loader
Returns the Loader object associated with this asynchronous