We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

orbit controls properties / zoom

Home Forums Programming orbit controls properties / zoom

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34107
    thomasup
    Customer

    question about the orbit controls:

    according to documentation, there should be an enableZoom property:
    https://www.soft8soft.com/docs/api/en/controls/OrbitControls.html#enableZoom
    but, when the app is running, it does not seem to exist.

    is there any way to enable / disable zooming at runtime?

    verge3d version 3.3.1

    #34112

    you can do something like this

    in the browser console:
    v3d.apps[0].controls.enableZoom = false;

    in the exec script puzzle or runCode() function:
    app.controls.enableZoom = false;

    Chief 3D Verger | LinkedIn | Twitter

    #34125
    thomasup
    Customer

    ah, i see.

    we were trying to access it via
    app.camera.controls.enableZoom
    where it does not exist.

    but
    app.controls.enableZoom
    works just fine!

    #34136

    :good:

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.