How i can obj position change with dat.gui {SOLVED}

user-interface

#1

Hi,
I am using var loader = new THREE.OBJLoader( manager ); function and i want to obj postion change with dat.gui
you can see my demo file

https://jsfiddle.net/shahid420/6r027a8g/10/


#3

Try it like so: https://jsfiddle.net/03Lymf79/

The idea is to setup the dat.gui when your model has finished loading.


#4

give me clarity, when i change position x,y,z parameter which way i can did.


#5

The object variable was undefined in your case. Just check the browser console after using the GUI in your first fiddle. I have ensured in your onLoad() callback handler that the variable is now correctly set. After that, the GUI is created and ready to use.


#6

Thanks a lot