panda3d.core.ModelLoadRequest

from panda3d.core import ModelLoadRequest
class ModelLoadRequest

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) → None
__init__(name: str, filename: Filename, options: LoaderOptions, loader: Loader) → None

Create a new ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.

getFilename() → Filename

Returns the filename associated with this asynchronous ModelLoadRequest.

Return type

Filename

getOptions() → LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelLoadRequest.

Return type

LoaderOptions

getLoader() → Loader

Returns the Loader object associated with this asynchronous ModelLoadRequest.

Return type

Loader

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

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.

Return type

PandaNode

static getClassType() → TypeHandle
Return type

TypeHandle

property filename

Returns the filename associated with this asynchronous ModelLoadRequest.

Return type

Filename

property options

Returns the LoaderOptions associated with this asynchronous ModelLoadRequest.

Return type

LoaderOptions

property loader

Returns the Loader object associated with this asynchronous ModelLoadRequest.

Return type

Loader