QMedia
![]() |
![]() ![]() |
QM_GetViewCenter(movieRef; viewCenterX; viewCenterY):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
viewCenterX | Real | Current horizontal view center |
![]() |
viewCenterY | Real | Current vertical view center |
![]() |
error | Longint | Error result |
Returns the current view center of a VR movie.
Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL. The movie must be currently assigned to a movie plug-in area.
Parameters viewCenterX and viewCenterY receive the movie's horizontal and vertical view center respectively.
This command applies on VR object nodes only.
Example
`Get view center of VR object movie $movie C_REAL($viewCenterH;$viewCenterV) $err:=QM_GetViewCenter ($movie;$viewCenterH;$viewCenterV) |
Related commands
QM_SetViewCenter | Sets the current view center. |
QM_GetViewCenterRange | Returns the view center range. |