# Change colors problem

**URL:** <https://discourse.threejs.org/t/change-colors-problem/75827>\
**Category:** Questions\
**Created:** [December 30, 2024, 4:14pm UTC](https://discourse.threejs.org/t/change-colors-problem/75827 "2024-12-30T16:14:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ADI3DXP](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@ADI3DXP](https://discourse.threejs.org/u/ADI3DXP)\
**Post date:** [January 1, 2025, 5:57pm UTC](https://discourse.threejs.org/t/change-colors-problem/75827/7 "2025-01-01T17:57:13Z")

</div>

> [@Add children to a group break traverse method](https://discourse.threejs.org/t/add-children-to-a-group-break-traverse-method/12642):
>
> Hi there! I would like to traverse the whole scene looking for a certain child (which is actually a grand-child) and then add it to another group in order to change its pivot point (it’s a door). Here’s my code: pivot(nome, lato) { scene.traverse(child =\> { if (child instanceof THREE.Mesh){ if (child.name.includes(nome)) { let box = new THREE.Box3().setFromObject( child ); let pivotAnta = new THREE.Group(); scene.add(piv…

thanks. Maybe, to create array , and use it to stock materials, i’m very new to this (see subject) medium-to-good problem here 🤓 !!

---

_[View the full topic](https://discourse.threejs.org/t/change-colors-problem/75827)._
