Javascript API to control Zoom IN/OUT

Q&A about the latest versions
Post Reply
NishantA23
Posts: 13
Joined: Mon May 17, 2021 10:51 am

Hello,

Is there a Javascript API that helps to Zoom IN/OUT of an Object2VR scene ? Kindly help if it's available.
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Please see this page for Object2VR API calls: https://ggnome.com/wiki/javascript-api-object2vr/
But for zoom you can use:

Code: Select all

obj.getFov
and

Code: Select all

obj.setFov
to set the zoom factor in percent.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply