ModelSaveRequest

from panda3d.core import ModelSaveRequest
class ModelSaveRequest

Bases:

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__(name: str, filename: Filename, options: LoaderOptions, node: PandaNode, loader: Loader)

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

property filename → Filename

Returns the filename associated with this asynchronous ModelSaveRequest.

static get_class_type() → TypeHandle
get_filename() → Filename

Returns the filename associated with this asynchronous ModelSaveRequest.

get_loader() → Loader

Returns the Loader object associated with this asynchronous ModelSaveRequest.

get_node() → PandaNode

Returns the node that was passed to the constructor.

get_options() → LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.

get_success() → bool

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

is_ready() → 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 get_success(). Equivalent to req.done() and not req.cancelled().

See panda3d.core.AsyncFuture.done().

property loader → Loader

Returns the Loader object associated with this asynchronous ModelSaveRequest.

property node → PandaNode

Returns the node that was passed to the constructor.

property options → LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.