Hi,
is there any way to detect pano is rotating(spin) or pasued(stopped)?
thanks
--
Pratiks
Hi,
is there any way to detect pano is rotating(spin) or pasued(stopped)?
thanks
--
Pratiks
You mean the auto rotator or manual movement?
Hello!Check
autoroatet.enabled
about here
BR
Andrey
I don't know krpano scripting too much yet, but it could look like this:
- store panorama position in some variables - for example currentX, currentY, currentZoom (like set(currentX, view.hlookat))
- write function that:
- checks if position is changed or no (currentX == view.hlookat && currentZ == view.vlookat && currentZoom == view.zoom)
- set variable that indicates if panorama is moving - for example isMoving - to true or false
- set position variables to current state - set(currentX, view.hlookat)
- call the same function again in some time, for example 500ms - for example delayedcall(500, CheckIfIsMoving())
Then you will have the information stored in variable isMoving, and it will update every half a second.
Hi myksa,
This will really help me out.
I will try that.
thanks
--
Pratiks
Hi,
I'm not sure if you mean that - but there is the onviewchange event,
that will be called every time when the pano view will be changed,
best regards,
Klaus
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!