Difference between revisions of "NifOpen"
Jump to navigation
Jump to search
imported>DragoonWraith (New page: This is a command from Category:NifSE. '''Syntax''' (short:NifID) NifOpen string:FilePath ''bool:writable'' Opens a .nif 3D mesh file for reading, or if the optional bool is true,...) |
imported>DragoonWraith (→Notes) |
||
Line 7: | Line 7: | ||
== Notes == | == Notes == | ||
* The file path must be relative to the Oblivion\Data\Meshes\ folder. This is the same scheme as used by similar [[:Category:Oblivion Script Extender|OBSE]] functions. | * The file path must be relative to the <tt>Oblivion\Data\Meshes\</tt> folder. This is the same scheme as used by similar [[:Category:Oblivion Script Extender|OBSE]] functions. | ||
* NifSE creates a copy of the indicated .nif file when you request a writable nif, and the nif you are actually editing is that nif. The original nif is not altered in any way. You can get the file path of the copy with [[NifGetPath]]. | * NifSE creates a copy of the indicated .nif file when you request a writable nif, and the nif you are actually editing is that nif. The original nif is not altered in any way. You can get the file path of the copy with [[NifGetPath]]. | ||
Revision as of 10:48, 25 April 2010
This is a command from NifSE.
Syntax
(short:NifID) NifOpen string:FilePath bool:writable
Opens a .nif 3D mesh file for reading, or if the optional bool is true, editing. Returns a unique identifier which may be passed to other NifSE functions in order to refer to the mesh.
Notes
- The file path must be relative to the Oblivion\Data\Meshes\ folder. This is the same scheme as used by similar OBSE functions.
- NifSE creates a copy of the indicated .nif file when you request a writable nif, and the nif you are actually editing is that nif. The original nif is not altered in any way. You can get the file path of the copy with NifGetPath.