How to rotate scene object based on x,y,z coordinates

Could you explain what you want to archive? To use a different “up-axis” you can set the up axis of any object or mesh with myObject.up.set(1.0, 0.0, 0.0) for positive-x for example, or set the THREE.Object3D.DefaultUp before any objects are created.