Javascript API to control Zoom IN/OUT

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

Fri Jul 30, 2021 9:36 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: 11657
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Jul 30, 2021 6:56 pm

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,
Hopki
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