ModelLoadRequest

from panda3d.core import ModelLoadRequest
class ModelLoadRequest

Bases:

Bases: AsyncTask

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.

Inheritance diagram

Inheritance diagram of ModelLoadRequest

__init__(param0: ModelLoadRequest)
__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 ModelLoadRequest.

static getClassType() TypeHandle
getFilename() Filename

Returns the filename associated with this asynchronous ModelLoadRequest.

getLoader() Loader

Returns the Loader object associated with this asynchronous ModelLoadRequest.

getModel() 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 done() returns true.

Deprecated: Use result() instead.

getOptions() LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelLoadRequest.

isReady() 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 getModel(). Equivalent to req.done() and not req.cancelled().

See panda3d.core.AsyncFuture.done().

property loader Loader

Returns the Loader object associated with this asynchronous ModelLoadRequest.

property options LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelLoadRequest.