# three-gltf-combine

> Combine GLTF/GLB parts

Latest version **1.0.0** (published 2022-12-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install three-gltf-combine
pnpm add three-gltf-combine
yarn add three-gltf-combine
bun add three-gltf-combine
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-06 |
| First published | 2022-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | juunini |
| Maintainers | juunini |
| Keywords | three, threejs, gltf, glb, combine, merge |

## Links

- npm: https://www.npmjs.com/package/three-gltf-combine
- Repository: https://github.com/juunini/three-gltf-combine
- Issues: https://github.com/juunini/three-gltf-combine/issues
- npm.io page: https://npm.io/package/three-gltf-combine

## Recent versions

- 1.0.0 (latest) — 2022-12-06
- 0.0.2 — 2022-12-06
- 0.0.1 — 2022-12-06

## README

# three-gltf-combine

## Install

```bash
#npm
npm install three-gltf-combine

#yarn
yarn add three-gltf-combine

# pnpm
pnpm add three-gltf-combine

# bun
bun add three-gltf-combine
```

## Usage

### If you want to combine gltf parts

```ts
import { combineSkinnedMesh } from 'three-gltf-combine';

//...

const destination = parent.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
const target = otherGLTF.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;

combineSkinnedMesh({
  target,
  destination,
  parent,
});
```

### If you want to replace gltf parts

```ts
import { replaceSkinnedMesh } from 'three-gltf-combine';

//...

const destination = parent.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
const target = otherGLTF.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;

replaceSkinnedMesh({
  target,
  destination,
  parent,
});
```

---
_Source: https://npm.io/package/three-gltf-combine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
