<commit_before>##
#	\namespace	blur3d.api.studiomax.studiomaxscenecamera
#
#	\remarks	The StudiomaxSceneCamera class provides the implementation of the AbstractSceneCamera class as it applies
#				to 3d Studio Max scenes
#	
#	\author		<EMAIL>
#	\author		Blur Studio
#	\date		03/15/10
#

import os
from Py3dsMax import mxs
from PyQt4.QtCore import QSize
from blur3d.api.abstract.abstractscenecamera import AbstractSceneCamera

#------------------------------------------------------------------------------------------------------------------------

class StudiomaxSceneCamera( AbstractSceneCamera ):

	#------------------------------------------------------------------------------------------------------------------------
	# 												public methods
	#------------------------------------------------------------------------------------------------------------------------

	def cameraType( self ):
		"""
			\remarks	implements the AbstractSceneCamera.cameraType method to determine what type of camera this instance is
			\return		<blur3d.api.constants.CameraType>
		"""
		from blur3d.constants import CameraType
		
		cls = mxs.classof(self._nativePointer)
		if ( cls in (mxs.FreeCamera,mxs.TargetCamera) ):
			return CamearType.Standard
		
		elif ( cls == mxs.VRayPhysicalCamera ):
			return CameraType.VRayPhysical
		return 0

	def filmWidth(self):
		"""
			\remarks	Returns the film_width of the camera.
			\return		film_width (float)
		"""
		try:
			fw = self._nativePointer.film_width<commit_msg>Corrects a typo.<commit_after>##
#	\namespace	blur3d.api.studiomax.studiomaxscenecamera
#
#	\remarks	The StudiomaxSceneCamera class provides the implementation of the AbstractSceneCamera class as it applies
#				to 3d Studio Max scenes
#	
#	\author		<EMAIL>
#	\author		Blur Studio
#	\date		03/15/10
#

import os
from Py3dsMax import mxs
from PyQt4.QtCore import QSize
from blur3d.api.abstract.abstractscenecamera import AbstractSceneCamera

#------------------------------------------------------------------------------------------------------------------------

class StudiomaxSceneCamera( AbstractSceneCamera ):

	#------------------------------------------------------------------------------------------------------------------------
	# 												public methods
	#------------------------------------------------------------------------------------------------------------------------

	def cameraType( self ):
		"""
			\remarks	implements the AbstractSceneCamera.cameraType method to determine what type of camera this instance is
			\return		<blur3d.api.constants.CameraType>
		"""
		from blur3d.constants import CameraType
		
		cls = mxs.classof(self._nativePointer)
		if ( cls in (mxs.FreeCamera,mxs.TargetCamera) ):
			return CameraType.Standard
		
		elif ( cls == mxs.VRayPhysicalCamera ):
			return CameraType.VRayPhysical
		return 0

	def filmWidth(self):
		"""
			\remarks	Returns the film_width of the camera.
			\return		film_width (float)
		"""
		try:
			fw = self._nativePointer.film_width
{'fraction_non_alphanumeric': 0.30149253731343284, 'fraction_numerical': 0.009286898839137645, 'mean_word_length': 1.5133333333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4999458', 'n_tokens_mistral': 874, 'n_tokens_neox': 776, 'n_words': 203}