panda3d.core.ModelSaveRequest

class ModelSaveRequest

Bases: AsyncTask

A class object that manages a single asynchronous model save request. Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.

Inheritance diagram

Inheritance diagram of ModelSaveRequest

__init__(param0: ModelSaveRequest) → None
__init__(name: str, filename: Filename, options: LoaderOptions, node: PandaNode, loader: Loader) → None

Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.

getFilename() → Filename

Returns the filename associated with this asynchronous ModelSaveRequest.

Return type

Filename

getOptions() → LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.

Return type

LoaderOptions

getNode() → PandaNode

Returns the node that was passed to the constructor.

Return type

PandaNode

getLoader() → Loader

Returns the Loader object associated with this asynchronous ModelSaveRequest.

Return type

Loader

isReady() → bool

Returns true if this request has completed, false if it is still pending. When this returns true, you may retrieve the success flag with getSuccess(). Equivalent to req.done() and not req.cancelled().

See done().

getSuccess() → bool

Returns the true if the model was saved successfully, false otherwise. It is an error to call this unless done() returns true.

static getClassType() → TypeHandle
Return type

TypeHandle

property filename

Returns the filename associated with this asynchronous ModelSaveRequest.

Return type

Filename

property options

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.

Return type

LoaderOptions

property node

Returns the node that was passed to the constructor.

Return type

PandaNode

property loader

Returns the Loader object associated with this asynchronous ModelSaveRequest.

Return type

Loader