File I/O

class lwsdk.LWFileIOFuncs(*args)

Bases: object

Proxy of C++ PCore::LWFileIOFuncs class

 closeLoad(LWLoadState load)

Close a file opened by LWFileIOFuncs::openLoad().

 closeSave(LWSaveState save)

Close a file opened by LWFileIOFuncs::openSave().

 openLoad(char name, int ioMode) → LWLoadState

Open a file for reading. The ioMode values are the same as those for LWFileIOFuncs::openSave().

 openSave(char name, int ioMode) → LWSaveState

Open a file for writing. ioMode can be one of the following:

lwsdk.LWIO_ASCII
    Create a text file. Write operations will be line-buffered.

lwsdk.LWIO_BINARY
    Create a binary file. Block writes will always use 2-byte integers for block sizes.

lwsdk.LWIO_BINARY_IFF
    Create a binary file. Block sizes will be 4-byte integers for the first two
    nesting levels and 2-byte integers at deeper levels, corresponding to the chunk
    and subchunk scheme used in LightWave object files.

lwsdk.LWIO_BINARY_IFF32 (rev.3+)
    Create a binary file. Block sizes will be 4-byte integers for all nesting levels.

Previous topic

Item Instance Info

Next topic

Light Evaluation Funcs

This Page