Closed donmccurdy closed 7 months ago
Changes:
Document#merge
Document#clone
mergeDocuments(target, source)
cloneDocument(source)
copyToDocument(target, source, sourceProperties)
moveToDocument(target, source, sourceProperties)
Example:
import { copyToDocument } from '@gltf-transform/functions'; // Copy materials from sourceDocument to targetDocument. const map = copyToDocument( targetDocument, sourceDocument, [sourceMaterialA, sourceMaterialB] ); // Find counterpart of sourceMaterialA in targetDocument. const targetMaterialA = map.get(sourceMaterialA);
Related:
Excellent, thank you! I look forward to using these.
Oh great, thanks a lot!
Changes:
Document#merge
andDocument#clone
methodsmergeDocuments(target, source)
cloneDocument(source)
copyToDocument(target, source, sourceProperties)
moveToDocument(target, source, sourceProperties)
Example:
Related: