XGEN MEL script import error.
Not applicable
05-13-2020
02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I have strange problem with importing my MEL script, generated by XGEN.
It stops on line 17 with error "Cannot convert data of type string to type string[]."
Link to the script: Hillok02Coll.mel
String 17 is:
$xgPrim3_0_Hillok02Coll = `group -em -name xgPrim3_0_Hillok02Coll`;
I see no difference with another lines with similar commands. What can cause what error?
Example of first 20 lines of script:
string $filterOutCameras = "front persp side top";
$xgMelGroup = `group -em -name Hillok02CollDump`;
$xgPrim1_0_Hillok02Coll = `group -em -name xgPrim1_0_Hillok02Coll`;
AbcImport -mode import -eft $filterOutCameras -rpr $xgPrim1_0_Hillok02Coll "C:/Users/somes/Documents/01_PROJECTS/BarkBarkStudio/Hilloks//xgen/archives/abc/Flower01.abc";
file -import -ra true -mergeNamespacesOnClash true -namespace "Flower01" -options "v=0;" -pr "C:/Users/somes/Documents/01_PROJECTS/BarkBarkStudio/Hilloks//xgen/archives/materials/Flower01.ma";
parent $xgPrim1_0_Hillok02Coll $xgMelGroup;
select -r $xgPrim1_0_Hillok02Coll;
sets -e -fe "initialShadingGroup";
xform -a -piv 0.0 0.0 0.0 -matrix -1.0392502053247548e+00 -1.2438674348149584e-01 3.6321787182965953e-01 0.0000000000000000e+00 4.1713800552587443e-02 9.9438622021244782e-01 4.5988799681803616e-01 0.0000000000000000e+00 -4.1459897951843416e-01 4.8863040772199801e-01 -1.0189281919006352e+00 0.0000000000000000e+00 1.2903136253356934e+01 3.4445758819580078e+01 3.0635894775390625e+01 1.0000000000000000e+00 $xgPrim1_0_Hillok02Coll;
$xgPrim2_0_Hillok02Coll = `group -em -name xgPrim2_0_Hillok02Coll`;
AbcImport -mode import -eft $filterOutCameras -rpr $xgPrim2_0_Hillok02Coll "C:/Users/somes/Documents/01_PROJECTS/BarkBarkStudio/Hilloks//xgen/archives/abc/Grass.abc";
file -import -ra true -mergeNamespacesOnClash true -namespace "Grass" -options "v=0;" -pr "C:/Users/somes/Documents/01_PROJECTS/BarkBarkStudio/Hilloks//xgen/archives/materials/Grass.ma";
parent $xgPrim2_0_Hillok02Coll $xgMelGroup;
select -r $xgPrim2_0_Hillok02Coll;
sets -e -fe "initialShadingGroup";
xform -a -piv 0.0 0.0 0.0 -matrix -6.1699999255208138e-01 4.7060587057366349e-01 -4.4659980421103990e-01 0.0000000000000000e+00 3.5424042310014403e-01 1.0758470420459787e+00 6.4427613424511398e-01 0.0000000000000000e+00 7.3551725116080624e-01 2.2460901241424425e-01 -7.7947149859866260e-01 0.0000000000000000e+00 2.3424041748046875e+01 3.1499050140380859e+01 3.1010181427001953e+01 1.0000000000000000e+00 $xgPrim2_0_Hillok02Coll;
$xgPrim3_0_Hillok02Coll = `group -em -name xgPrim3_0_Hillok02Coll`;
AbcImport -mode import -eft $filterOutCameras -rpr $xgPrim3_0_Hillok02Coll "C:/Users/somes/Documents/01_PROJECTS/BarkBarkStudio/Hilloks//xgen/archives/abc/Grass.abc";
parent $xgPrim3_0_Hillok02Coll $xgMelGroup;
select -r $xgPrim3_0_Hillok02Coll;
Link copied