mdlIModelClient SetGlobalLightPosition
Sets the position of the light.
Syntax
mdlIModelClient_Handle SetGlobalLightPosition light, X_value, Y_value
Application
MotionView Tcl Modify
Description
This command sets the position of the light.
Inputs
- light
- This argument is always 1.
- X_value
- The position of the x-coordinate.
- Y_value
- The position of the y-coordinate.
Example
hwi OpenStack
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl SetGlobalLightPosition 1 0.0 0.0
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;
Errors
Returns 0 if successful, otherwise an error code.