Difference between revisions of "NiNodeCopyChild"
Jump to navigation
Jump to search
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (short:childID) NiNodeCopyChild short:fromNifID short:fromBlockID short:toNifID ''short:toBlockID'' (short:childID) NiNode...) |
imported>DragoonWraith (about the bug fix in 1.2) |
||
Line 6: | Line 6: | ||
Copies the [[:Category:NifSE (NiAVObject)|<tt>NiAVObject</tt>]]-derived block specified by <tt>fromBlockID</tt>, and adds it as a child of the [[:Category:NifSE (NiNode)|<tt>NiNode</tt>]]-derived block specified by <tt>toBlockID</tt>. The <tt>fromNifID</tt> and <tt>toNifID</tt> may be the same to copy a child from one part of a nif to another, or different to copy the child of one nif to another. Copies the entire branch, rather than ''just'' the <tt>NiAVObject</tt> specified. Returns the new <tt>NiAVObject</tt>'s <tt>blockID</tt> if successful, -1 otherwise. | Copies the [[:Category:NifSE (NiAVObject)|<tt>NiAVObject</tt>]]-derived block specified by <tt>fromBlockID</tt>, and adds it as a child of the [[:Category:NifSE (NiNode)|<tt>NiNode</tt>]]-derived block specified by <tt>toBlockID</tt>. The <tt>fromNifID</tt> and <tt>toNifID</tt> may be the same to copy a child from one part of a nif to another, or different to copy the child of one nif to another. Copies the entire branch, rather than ''just'' the <tt>NiAVObject</tt> specified. Returns the new <tt>NiAVObject</tt>'s <tt>blockID</tt> if successful, -1 otherwise. | ||
== Notes == | |||
* Prior to v1.2, <tt>NiNodeCopyChild</tt> failed to work with skinned meshes (armor, clothing, etc.) because the bones used by the child were not copied over. v1.2 fixes this. | |||
== See Also == | == See Also == |
Revision as of 09:39, 10 February 2015
This is a command from NifSE.
Syntax
(short:childID) NiNodeCopyChild short:fromNifID short:fromBlockID short:toNifID short:toBlockID (short:childID) NiNodeCopyCh short:nifID short:blockID
Copies the NiAVObject-derived block specified by fromBlockID, and adds it as a child of the NiNode-derived block specified by toBlockID. The fromNifID and toNifID may be the same to copy a child from one part of a nif to another, or different to copy the child of one nif to another. Copies the entire branch, rather than just the NiAVObject specified. Returns the new NiAVObject's blockID if successful, -1 otherwise.
Notes
- Prior to v1.2, NiNodeCopyChild failed to work with skinned meshes (armor, clothing, etc.) because the bones used by the child were not copied over. v1.2 fixes this.