You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi :)
I'm really beginner with three.js.. so I need your help. my 3D model has one action, and I'm trying to control the movement of my model using GSAP ScrollTrigger along with the action. So I used this code, but my action always returns null.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi :)
I'm really beginner with three.js.. so I need your help. my 3D model has one action, and I'm trying to control the movement of my model using GSAP ScrollTrigger along with the action. So I used this code, but my action always returns null.
i appreciate your support! Please help me!!
useEffect(() => {
if (group.current) {
// create QuaternionKeyframeTrack
const createQuaternionAnimation = () => {
const trackName = '.quaternion';
const times = [0, 1, 2];
const values = [
}
}, [group]);
useEffect(() => {
console.log(mixer)
if (mixer) {
mixer.update(0);
mixer.timeScale = 1;
*** const action = mixer.clipAction('quaternionAnimation');
if (action !== null) {
action.play();
}else{
console.log("not found")
}**
}
}, [mixer]);
Beta Was this translation helpful? Give feedback.
All reactions