I have a 3D model that I took on mixamo. I would like to interact with its material object but when I try to log its material, nothing prints out not even the “value”.
I’ve already did it in a group of mesh but never in a skinnedMesh, is there something different ?
This is what I’ve done for the moment
export default function Flare(props) {
const group = useRef()
const { nodes, materials, animations } = useGLTF('/flarev2.glb')
const { actions } = useAnimations(animations, group)
useEffect(() => {
actions.flare.play()
})
return (
<group ref={group} {...props} dispose={null}>
<group onPointerOver={e => console.log("value ==> ", e.object)} rotation={[Math.PI / 2, 0, 0]} position={[0, -1, 0]} scale={[0.02, 0.02, 0.02]}>
<primitive object={nodes.mixamorig9Hips} />
<skinnedMesh geometry={nodes.Mesh.geometry} material={materials.Ch06_body} skeleton={nodes.Mesh.skeleton} />
<skinnedMesh
geometry={nodes.Mesh_1.geometry}
material={materials.Ch06_eyelashes}
skeleton={nodes.Mesh_1.skeleton}
/>
<skinnedMesh
geometry={nodes.Mesh_2.geometry}
material={materials.Ch06_body1}
skeleton={nodes.Mesh_2.skeleton}
/>
</group>
</group>
)
}