<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FBX plugin doesn't use scripted scale setting in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/fbx-plugin-doesn-t-use-scripted-scale-setting/m-p/7383547#M11302</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4715779"&gt;@dankeating3d&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting! This is outside my knowledge with MEL, but I wanted to let you know that we are looking for answers to this issue. I'm collaborating with my colleagues and&amp;nbsp;help is on the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your participation in our community! Have a great day, and a fantastic weekend. =]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Faline&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 14:19:38 GMT</pubDate>
    <dc:creator>faline.custodio.da.silva</dc:creator>
    <dc:date>2017-09-15T14:19:38Z</dc:date>
    <item>
      <title>FBX plugin doesn't use scripted scale setting</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/fbx-plugin-doesn-t-use-scripted-scale-setting/m-p/7365383#M11301</link>
      <description>&lt;P&gt;I'm trying to create a one-click export for FBX using the scripting commands listed here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=GUID-76CF67F4-BBBB-48C6-AE48-6EF6975CB870" target="_blank"&gt;http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=GUID-76CF67F4-BBBB-48C6-AE48-6EF6975CB870&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this block of MEL :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	//units settings 
	FBXExportScaleFactor 1.0 ; 
	FBXProperty Export|AdvOptGrp|UnitsGrp|DynamicScaleConversion -v false;
	FBXProperty Export|AdvOptGrp|UnitsGrp|UnitsSelector -v "Meters";
	currentUnit -linear "m";&lt;BR /&gt;        FBXPushSettings;&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;which is followed by:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	FBXExport -f $exportName -s ;&lt;/PRE&gt;&lt;P&gt;"$exportName" is the output path I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It runs fine. &lt;STRONG&gt;However the scale of the exported file is not correct. &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you export a FBX manually and set the scale (under advanced settings&amp;gt; Units) incorrectly and then use the exporter script it will use the scale set in the previous export. If I run the script twice - the second export will be the correct scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if I open Maya and immediately use the export script it will spit out this error:&lt;/P&gt;&lt;PRE&gt;// Error: Syntax Error: bad value for this property. Use a valid enum item. // &lt;/PRE&gt;&lt;P&gt;This seems to be caused by the FBX plugin not being properly initialized when you start Maya. The value it's complaining about is "Meters".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Also I put in debug print commands that execute after the export&lt;/P&gt;&lt;PRE&gt;		print ("file units " + ` currentUnit -q -linear` + "\r\n");
		print ("scaleFactor " + `FBXExportScaleFactor -q` + "\r\n");
		print ("convertUnit " + `FBXExportConvertUnitString  -q` + "\r\n");
		print ("unitsSelector " + `FBXProperty Export|AdvOptGrp|UnitsGrp|UnitsSelector -q` + "\r\n");&lt;/PRE&gt;&lt;P&gt;These show the scale values as being set correctly by the code &lt;EM&gt;even though the exported file is not the right scale&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/fbx-plugin-doesn-t-use-scripted-scale-setting/m-p/7365383#M11301</guid>
      <dc:creator>dankeating3d</dc:creator>
      <dc:date>2017-09-08T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: FBX plugin doesn't use scripted scale setting</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/fbx-plugin-doesn-t-use-scripted-scale-setting/m-p/7383547#M11302</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4715779"&gt;@dankeating3d&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting! This is outside my knowledge with MEL, but I wanted to let you know that we are looking for answers to this issue. I'm collaborating with my colleagues and&amp;nbsp;help is on the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your participation in our community! Have a great day, and a fantastic weekend. =]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Faline&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/fbx-plugin-doesn-t-use-scripted-scale-setting/m-p/7383547#M11302</guid>
      <dc:creator>faline.custodio.da.silva</dc:creator>
      <dc:date>2017-09-15T14:19:38Z</dc:date>
    </item>
  </channel>
</rss>

