Permalink
Browse files

[COLLADA CTS NetAllied RFQ] maya adjustment

- adjusting maya script + add parameter to config.txt
- adjusting 4 testcase-dae-files for working with
Default-Render-settings (-> testCamera)
  • Loading branch information...
1 parent f30490d commit 394c0c71da3dcbfe447d262694bd5167d317af52 @GerhardMaier GerhardMaier committed Mar 7, 2013
View
@@ -19,7 +19,7 @@ class FMaya (FApplication):
"""
- __PLUGIN = ("COLLADA")
+ __PLUGIN = ("OpenCOLLADA")
__MEL_SCRIPT_EXTENSION = ".mel"
__SCRIPT_EXTENSION = ".py"
@@ -225,7 +225,7 @@ def WriteImport(self, filename, logname, outputDir, settings, isAnimated, camera
command = ("catch(`file -type \"mayaAscii\" -o \"" + filename +
"\"`);\n")
else:
- command = ("catch(`file -type \"COLLADA importer\" -o \"" +
+ command = ("catch(`file -type \"OpenCOLLADA importer\" -o \"" +
filename + "\"`);\n")
self.__melScript.write(
@@ -251,8 +251,10 @@ def WriteRender(self, logname, outputDir, settings, isAnimated, cameraRig, light
baseName = self.__currentImportProperName
output = os.path.normpath(os.path.join(outputDir, baseName))
outputDir = os.path.dirname(output)
-
- command = "Render -rd \"" + outputDir + "\" "
+ renderexe = os.path.normpath(os.path.join(self.configDict["mayaBasePath"], "Render"))
+
+ command = "" + self.configDict["mayaBasePath"] + "/Render -rd \"" + outputDir + "\" "
+ # print "XXXX command" + command;
for setting in settings:
prettyName = setting.GetPrettyName()
if (prettyName == FMaya.__RENDER_ANIMATION_START):
@@ -346,7 +348,7 @@ def WriteExport(self, logname, outputDir, settings, isAnimated, cameraRig, light
basename = self.__currentImportProperName + ".dae"
output = os.path.join(outputDir, self.__currentImportProperName)
output = output.replace("\\", "/")
-
+
options = ""
for setting in settings:
value = setting.GetValue().strip()
@@ -361,7 +363,7 @@ def WriteExport(self, logname, outputDir, settings, isAnimated, cameraRig, light
"$logname = \"" + logname.replace("\\", "/") + "\";\n" +
"$descriptor = `cmdFileOutput -o $logname`;\n" +
"catch(`file -op \"" + options +
- "\" -typ \"COLLADA exporter\" -pr -ea \"" + output +
+ "\" -type \"OpenCOLLADA exporter\" -pr -ea \"" + output +
"\"`);\n" +
"cmdFileOutput -c $descriptor;\n" +
"fixNewlines $logname;\n\n")
@@ -100,7 +100,7 @@
</library_geometries>
<library_visual_scenes>
<visual_scene id="visual_scenes_0" name="visual_scenes_0">
- <node id="Camera" name="Camera">
+ <node id="testCamera" name="testCamera">
<translate sid="translate">0 0 400</translate>
<rotate sid="rotateZ">0 0 1 0</rotate>
<rotate sid="rotateY">0 1 0 0</rotate>
@@ -1,137 +1,137 @@
-<?xml version="1.0" encoding="utf-8"?>
-<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
- <asset>
- <contributor>
- <authoring_tool>Autodesk Softimage version 8.0.200.0 - Crosswalk 4.1</authoring_tool>
- <copyright>
-
-
+<?xml version="1.0" encoding="utf-8"?>
+<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
+ <asset>
+ <contributor>
+ <authoring_tool>Autodesk Softimage version 8.0.200.0 - Crosswalk 4.1</authoring_tool>
+ <copyright>
+
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
- </copyright>
- </contributor>
- <created>2010-02-18T21:46:19Z</created>
- <keywords>Exemplary controller morph</keywords>
- <modified>2010-02-18T21:46:19Z</modified>
- <revision>1.4.1</revision>
- <subject>Reference where geometry is baked to be equivalent to test case skin_on_morph</subject>
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+ </copyright>
+ </contributor>
+ <created>2010-02-18T21:46:19Z</created>
+ <keywords>Exemplary controller morph</keywords>
+ <modified>2010-02-18T21:46:19Z</modified>
+ <revision>1.4.1</revision>
+ <subject>Reference where geometry is baked to be equivalent to test case skin_on_morph</subject>
<title>0137</title>
- <unit meter="0.01" name="centimeter"></unit>
- <up_axis>Y_UP</up_axis>
- </asset>
- <library_cameras>
- <camera id="mainCamera" name="mainCamera">
- <optics>
- <technique_common>
- <perspective>
- <yfov>36.9999</yfov>
- <aspect_ratio>1</aspect_ratio>
- <znear>1</znear>
- <zfar>1000</zfar>
- </perspective>
- </technique_common>
- </optics>
- </camera>
- </library_cameras>
- <library_lights>
- <light id="directionalLightShape1-lib" name="lights_0">
- <technique_common>
- <directional>
- <color>1 1 1</color>
- </directional>
- </technique_common>
- </light>
- </library_lights>
- <library_effects>
- <effect id="Scene_Material_fx" name="Scene_Material_fx">
- <profile_COMMON>
- <technique sid="default">
- <constant>
- <emission>
- <color sid="diffuse">0 0 1 0</color>
- </emission>
- </constant>
- </technique>
- </profile_COMMON>
- </effect>
- </library_effects>
- <library_materials>
- <material id="Scene_Material" name="Scene_Material">
- <instance_effect url="#Scene_Material_fx"></instance_effect>
- </material>
- </library_materials>
- <library_geometries>
- <geometry id="geometries_0" name="geometries_0">
- <mesh>
- <source id="geometries_0-Pos">
- <float_array id="geometries_0-Pos-array" count="18">
- -1.986207 0.000000 -4.000000
- -2.000000 0.000000 0.000000
- 0.565469 -0.000000 4.071474
- 2.013793 0.000000 -4.000000
- 2.000000 0.000000 0.000000
- 7.666680 -0.048596 4.013997
-
- </float_array>
- <technique_common>
- <accessor source="#geometries_0-Pos-array" count="6" stride="3">
- <param name="X" type="float"/>
- <param name="Y" type="float"/>
- <param name="Z" type="float"/>
- </accessor>
- </technique_common>
- </source>
- <vertices id="geometries_0-Vtx">
- <input semantic="POSITION" source="#geometries_0-Pos"/>
- </vertices>
- <polylist count="2" material="Scene_Material">
- <input semantic="VERTEX" source="#geometries_0-Vtx" offset="0"/>
- <vcount>4 4</vcount>
- <p>
- 0 1 4 3
- 1 2 5 4
- </p>
- </polylist>
- </mesh>
- </geometry>
- </library_geometries>
- <library_visual_scenes>
- <visual_scene id="visual_scenes_0" name="visual_scenes_0">
- <node id="Camera" name="Camera">
- <translate sid="translate">0 0 400</translate>
- <rotate sid="rotateZ">0 0 1 0</rotate>
- <rotate sid="rotateY">0 1 0 0</rotate>
- <rotate sid="rotateX">1 0 0 0</rotate>
- <instance_camera url="#mainCamera"/>
- </node>
- <node id="light" name="light">
- <translate sid="translate">50 0 400</translate>
- <rotate sid="rotateZ">0 0 1 0</rotate>
- <rotate sid="rotateY">0 1 0 15</rotate>
- <rotate sid="rotateX">1 0 0 0</rotate>
- <instance_light url="#directionalLightShape1-lib"/>
- </node>
- <node id="grid" name="grid">
- <translate sid="translation">0.000000 0.000000 0.000000</translate>
- <rotate sid="rotation_z">0.000000 0.000000 1.000000 0.000000</rotate>
- <rotate sid="rotation_y">0.000000 1.000000 0.000000 0.000000</rotate>
- <rotate sid="rotation_x">1.000000 0.000000 0.000000 90.000000</rotate>
- <scale sid="scale">15 15 15</scale>
- <instance_geometry url="#geometries_0">
- <bind_material>
- <technique_common>
- <instance_material symbol="Scene_Material" target="#Scene_Material"></instance_material>
- </technique_common>
- </bind_material>
- </instance_geometry>
- </node>
- </visual_scene>
- </library_visual_scenes>
- <scene>
- <instance_visual_scene url="#visual_scenes_0"/>
- </scene>
-</COLLADA>
+ <unit meter="0.01" name="centimeter"></unit>
+ <up_axis>Y_UP</up_axis>
+ </asset>
+ <library_cameras>
+ <camera id="mainCamera" name="mainCamera">
+ <optics>
+ <technique_common>
+ <perspective>
+ <yfov>36.9999</yfov>
+ <aspect_ratio>1</aspect_ratio>
+ <znear>1</znear>
+ <zfar>1000</zfar>
+ </perspective>
+ </technique_common>
+ </optics>
+ </camera>
+ </library_cameras>
+ <library_lights>
+ <light id="directionalLightShape1-lib" name="lights_0">
+ <technique_common>
+ <directional>
+ <color>1 1 1</color>
+ </directional>
+ </technique_common>
+ </light>
+ </library_lights>
+ <library_effects>
+ <effect id="Scene_Material_fx" name="Scene_Material_fx">
+ <profile_COMMON>
+ <technique sid="default">
+ <constant>
+ <emission>
+ <color sid="diffuse">0 0 1 0</color>
+ </emission>
+ </constant>
+ </technique>
+ </profile_COMMON>
+ </effect>
+ </library_effects>
+ <library_materials>
+ <material id="Scene_Material" name="Scene_Material">
+ <instance_effect url="#Scene_Material_fx"></instance_effect>
+ </material>
+ </library_materials>
+ <library_geometries>
+ <geometry id="geometries_0" name="geometries_0">
+ <mesh>
+ <source id="geometries_0-Pos">
+ <float_array id="geometries_0-Pos-array" count="18">
+ -1.986207 0.000000 -4.000000
+ -2.000000 0.000000 0.000000
+ 0.565469 -0.000000 4.071474
+ 2.013793 0.000000 -4.000000
+ 2.000000 0.000000 0.000000
+ 7.666680 -0.048596 4.013997
+
+ </float_array>
+ <technique_common>
+ <accessor source="#geometries_0-Pos-array" count="6" stride="3">
+ <param name="X" type="float"/>
+ <param name="Y" type="float"/>
+ <param name="Z" type="float"/>
+ </accessor>
+ </technique_common>
+ </source>
+ <vertices id="geometries_0-Vtx">
+ <input semantic="POSITION" source="#geometries_0-Pos"/>
+ </vertices>
+ <polylist count="2" material="Scene_Material">
+ <input semantic="VERTEX" source="#geometries_0-Vtx" offset="0"/>
+ <vcount>4 4</vcount>
+ <p>
+ 0 1 4 3
+ 1 2 5 4
+ </p>
+ </polylist>
+ </mesh>
+ </geometry>
+ </library_geometries>
+ <library_visual_scenes>
+ <visual_scene id="visual_scenes_0" name="visual_scenes_0">
+ <node id="testCamera" name="testCamera">
+ <translate sid="translate">0 0 400</translate>
+ <rotate sid="rotateZ">0 0 1 0</rotate>
+ <rotate sid="rotateY">0 1 0 0</rotate>
+ <rotate sid="rotateX">1 0 0 0</rotate>
+ <instance_camera url="#mainCamera"/>
+ </node>
+ <node id="light" name="light">
+ <translate sid="translate">50 0 400</translate>
+ <rotate sid="rotateZ">0 0 1 0</rotate>
+ <rotate sid="rotateY">0 1 0 15</rotate>
+ <rotate sid="rotateX">1 0 0 0</rotate>
+ <instance_light url="#directionalLightShape1-lib"/>
+ </node>
+ <node id="grid" name="grid">
+ <translate sid="translation">0.000000 0.000000 0.000000</translate>
+ <rotate sid="rotation_z">0.000000 0.000000 1.000000 0.000000</rotate>
+ <rotate sid="rotation_y">0.000000 1.000000 0.000000 0.000000</rotate>
+ <rotate sid="rotation_x">1.000000 0.000000 0.000000 90.000000</rotate>
+ <scale sid="scale">15 15 15</scale>
+ <instance_geometry url="#geometries_0">
+ <bind_material>
+ <technique_common>
+ <instance_material symbol="Scene_Material" target="#Scene_Material"></instance_material>
+ </technique_common>
+ </bind_material>
+ </instance_geometry>
+ </node>
+ </visual_scene>
+ </library_visual_scenes>
+ <scene>
+ <instance_visual_scene url="#visual_scenes_0"/>
+ </scene>
+</COLLADA>
@@ -212,7 +212,7 @@
</library_controllers>
<library_visual_scenes>
<visual_scene id="visual_scenes_0" name="visual_scenes_0">
- <node id="Camera" name="Camera">
+ <node id="testCamera" name="testCamera">
<translate sid="translate">0 0 400</translate>
<rotate sid="rotateZ">0 0 1 0</rotate>
<rotate sid="rotateY">0 1 0 0</rotate>
@@ -212,7 +212,7 @@
</library_controllers>
<library_visual_scenes>
<visual_scene id="visual_scenes_0" name="visual_scenes_0">
- <node id="Camera" name="Camera">
+ <node id="testCamera" name="testCamera">
<translate sid="translate">0 0 400</translate>
<rotate sid="rotateZ">0 0 1 0</rotate>
<rotate sid="rotateY">0 1 0 0</rotate>
View
@@ -1,6 +1,7 @@
feelingViewerGUI None
feelingViewerCLI ..\FeelingViewer\FViewerApplications\Output\FViewerCLI.exe
mayaPath C:\Program Files\Autodesk\Maya8.5\bin\maya.exe
+mayaBasePath C:\Program Files\Autodesk\Maya8.5\bin
maxPath C:\Program Files\Autodesk\3dsMax8\3dsmax.exe
maxColladaExporterFilename C:\Program Files\Autodesk\3dsMax8\plugcfg\ColladaMax.ini
xsiPath C:\Softimage\Softimage_7.5\Application\bin\XSIBATCH.bat

0 comments on commit 394c0c7

Please sign in to comment.