This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Return the lens type name as a string | |
| # Example: it = CmaxwellCameraIterator(); camera = it.first(scene); cameraLens = cameraParams.getLensType(); lens = mxa_lensTypeName(cameraLens) | |
| def mxa_lensTypeName(cameraLens): | |
| lensTypeName = '' | |
| if cameraLens[0] == TYPE_CYLINDRICAL_LENS: | |
| lensTypeName = 'cylindrical' | |
| elif cameraLens[0] == TYPE_EXTENSION_LENS: | |
| lensTypeName = 'extension lens' | |
| elif cameraLens[0] == TYPE_FISHEYE_LENS: | |
| lensTypeName = 'fisheye' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pymaxwell import * | |
| from math import * | |
| import os | |
| import sys | |
| import datetime | |
| mxsFileExt = 'mxs' | |
| mxsDirPath = '/Applications/Maxwell 3/scripts/stereo/' | |
| mxsFileList = getFilesFromPath(mxsDirPath, mxsFileExt) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check the operating system | |
| # Example: mxPlatform = getPlatform() | |
| def getPlatform(): | |
| import platform | |
| osPlatform = str(platform.system()) | |
| mxPlatform = '' | |
| if osPlatform == 'Windows': | |
| mxPlatform = 'Windows' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print "Icon folders:\n"; | |
| print `xbmLangPathList`; |
NewerOlder