⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m3gexportoptions.mel

📁 M3GExport enables developers to export complex 3D animated scenes from Maya&reg directly to Mobile 3
💻 MEL
📖 第 1 页 / 共 5 页
字号:
				}


				
			}
		}
		$result = 1;
		

	} else if ($action == "query") {

		
		if (`checkBoxGrp -q -v1 objMeshVertexNormals`)
		{
			$currentOptions = $currentOptions + "meshvertexnormals=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "meshvertexnormals=0;";
		}
		
		if (`checkBoxGrp -q -v1 objMeshVertexColors`)
		{
			$currentOptions = $currentOptions + "meshvertexcolors=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "meshvertexcolors=0;";
		}
		
		if (`checkBoxGrp -q -v1 objMeshTextureCoords`)
		{
			$currentOptions = $currentOptions + "meshtexturecoords=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "meshtexturecoords=0;";
		}
		
		int $intVal = `optionMenuGrp -q -sl objMeshVertexColorFormat`;
	      switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "meshvertexcolorformat=3;";break;
         		case 2:    $currentOptions = $currentOptions + "meshvertexcolorformat=4;";break;
         	}
		


		if (`checkBoxGrp -q -v1 objMeshes`)
		{
			$currentOptions = $currentOptions + "meshes=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "meshes=0;";
		}
		
		if (`checkBoxGrp -q -v1 objSkeletons`)
		{
			$currentOptions = $currentOptions + "skeletons=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "skeletons=0;";
		}
				
				
		if (`checkBoxGrp -q -v1 objKeyframes`)
		{
			$currentOptions = $currentOptions + "keyframes=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "keyframes=0;";
		}
		
				
		if (`checkBoxGrp -q -v1 objMaterials`)
		{
			$currentOptions = $currentOptions + "materials=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "materials=0;";
		}
		
		if (`checkBoxGrp -q -v1 objTextures`)
		{
			$currentOptions = $currentOptions + "textures=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "textures=0;";
		}
		
		if (`checkBoxGrp -q -v1 objFog`)
		{
			$currentOptions = $currentOptions + "fog=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "fog=0;";
		}
		
		if (`checkBoxGrp -q -v1 objPolygonMode`)
		{
			$currentOptions = $currentOptions + "polygonmode=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "polygonmode=0;";
		}
		
		if (`checkBoxGrp -q -v1 objCompositingMode`)
		{
			$currentOptions = $currentOptions + "compositingmode=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "compositingmode=0;";
		}
		
		if (`checkBoxGrp -q -v1 objLights`)
		{
			$currentOptions = $currentOptions + "lights=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "lights=0;";
		}
		
		if (`checkBoxGrp -q -v1 objCameras`)
		{
			$currentOptions = $currentOptions + "cameras=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "cameras=0;";
		}

		if (`checkBoxGrp -q -v1 objBackground`)
		{
			$currentOptions = $currentOptions + "background=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "background=0;";
		}
		
		if (`checkBoxGrp -q -v1 objWorld`)
		{
			$currentOptions = $currentOptions + "world=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "world=0;";
		}
		
		if (`checkBoxGrp -q -v1 objZLibCompression`)
		{
			$currentOptions = $currentOptions + "zlibcompression=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "zlibcompression=0;";
		}

		if (`checkBoxGrp -q -v1 objTriangleStripping`)
		{
			$currentOptions = $currentOptions + "trianglestripping=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "trianglestripping=0;";
		}
		
		if (`radioButtonGrp -q -sl objTriangleStripIndices` == 1)
		{
			$currentOptions = $currentOptions + "trianglestripindices=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "trianglestripindices=0;";
		}
				
		$intVal = `optionMenuGrp -q -sl objKeyframeEncoding`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "keyframeencoding=1;";break;
         		case 2:    $currentOptions = $currentOptions + "keyframeencoding=2;";break;
         		case 3:    $currentOptions = $currentOptions + "keyframeencoding=0;";break;
        	}
		
		$intVal = `optionMenuGrp -q -sl objVertexCoordEncoding`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "vertexcoordencoding=1;";break;
         		case 2:    $currentOptions = $currentOptions + "vertexcoordencoding=2;";break;
        	}
		
		$intVal = `optionMenuGrp -q -sl objTextureCoordEncoding`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "texturecoordencoding=1;";break;
         		case 2:    $currentOptions = $currentOptions + "texturecoordencoding=2;";break;
        	}
		
		$intVal = `optionMenuGrp -q -sl objVertexNormEncoding`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "vertexnormencoding=1;";break;
         		case 2:    $currentOptions = $currentOptions + "vertexnormencoding=2;";break;
        	}
		
		if (`checkBoxGrp -q -v1 objAnimationTrackOrientation`)
		{
			$currentOptions = $currentOptions + "animationtrackorientation=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "animationtrackorientation=0;";
		}
		
		
		if (`checkBoxGrp -q -v1 objAnimationTrackScale`)
		{
			$currentOptions = $currentOptions + "animationtrackscale=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "animationtrackscale=0;";
		}
		
		if (`checkBoxGrp -q -v1 objAnimationTrackTranslation`)
		{
			$currentOptions = $currentOptions + "animationtracktranslation=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "animationtracktranslation=0;";
		}
				
		if (`checkBoxGrp -q -v1 objAnimationTrackVisibility`)
		{
			$currentOptions = $currentOptions + "animationtrackvisibility=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "animationtrackvisibility=0;";
		}
		if (`checkBoxGrp -q -v1 objAnimationTrackMorphWeights`)
		{
			$currentOptions = $currentOptions + "animationtrackmorphweights=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "animationtrackmorphweights=0;";
		}
		if (`checkBoxGrp -q -v1 objMorphingMeshVertexCoords`)
		{
			$currentOptions = $currentOptions + "morphingmeshvertexcoords=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "morphingmeshvertexcoords=0;";
		}
		
		
		if (`checkBoxGrp -q -v1 objMorphingMeshVertexNormals`)
		{
			$currentOptions = $currentOptions + "morphingmeshvertexnormals=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "morphingmeshvertexnormals=0;";
		}
		
		if (`checkBoxGrp -q -v1 objMorphingMeshVertexColors`)
		{
			$currentOptions = $currentOptions + "morphingmeshvertexcolors=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "morphingmeshvertexcolors=0;";
		}
		
		if (`checkBoxGrp -q -v1 objMorphingMeshTextureCoords`)
		{
			$currentOptions = $currentOptions + "morphingmeshtexturecoords=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "morphingmeshtexturecoords=0;";
		}
		$intVal = `optionMenuGrp -q -sl objBackgroundImageModeX`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "backgroundimagemodex=32;";break;
         		case 2:    $currentOptions = $currentOptions + "backgroundimagemodex=33;";break;
         	}

		$intVal = `optionMenuGrp -q -sl objBackgroundImageModeY`;
	        switch ( $intVal )
        	{
         		case 1:    $currentOptions = $currentOptions + "backgroundimagemodey=32;";break;
         		case 2:    $currentOptions = $currentOptions + "backgroundimagemodey=33;";break;
         	}
										
		if (`checkBoxGrp -q -v1 objBackgroundDepthClear`)
		{
			$currentOptions = $currentOptions + "backgrounddepthclear=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "backgrounddepthclear=0;";
		}
								
		if (`checkBoxGrp -q -v1 objBackgroundColorClear`)
		{
			$currentOptions = $currentOptions + "backgroundcolorclear=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "backgroundcolorclear=0;";
		}

		if (`checkBoxGrp -q -v1 objCameraPerspective`)
		{
			$currentOptions = $currentOptions + "cameraperspective=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "cameraperspective=0;";
		}
										
		if (`checkBoxGrp -q -v1 objCameraSide`)
		{
			$currentOptions = $currentOptions + "cameraside=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "cameraside=0;";
		}
		if (`checkBoxGrp -q -v1 objCameraFront`)
		{
			$currentOptions = $currentOptions + "camerafront=1;";
		}
		else 
		{
			$currentOptions = $currentOptions + "camerafront=0;";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -