EnableCameraOrtho

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Enable or disable orthographic view. Camera = getCurrentCamera() -- Use orthographic view enableCameraOrtho(Camera, true) -- Use perspective view enableCameraOrtho(Camer...")
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lua-function|enableCameraOrtho|object, bool}}
 +
 
Enable or disable orthographic view.
 
Enable or disable orthographic view.
 +
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|bool|true or false to enable or disable}}
  
 
  Camera = getCurrentCamera()
 
  Camera = getCurrentCamera()
Line 6: Line 11:
 
  -- Use perspective view
 
  -- Use perspective view
 
  enableCameraOrtho(Camera, false)
 
  enableCameraOrtho(Camera, false)
 +
 +
To check if camera is orthographic use [[isCameraOrtho]].
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Latest revision as of 01:10, 9 February 2014

enableCameraOrtho(object, bool)

Enable or disable orthographic view.

  • object : object to operate on
  • bool : true or false to enable or disable
Camera = getCurrentCamera()
-- Use orthographic view
enableCameraOrtho(Camera, true)
-- Use perspective view
enableCameraOrtho(Camera, false)

To check if camera is orthographic use isCameraOrtho.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox