I am facing the same issue here...
While the modeler tries to publish the model, I select the top assemblies 
and the necessary polysets and use the export command with export selected 
flag. The resulting file has only the required model and chop off the 
shaders and curves the modeler creates in the process. I can pass the model 
to rigger and every thing works fine and dandy.

But, I use the same .ma file to generate the obj files as a background 
process using mayapy when the texture guy tries to import the asset in 
mari. Even though the modeler has not added the arnold shaders, just 
because the arnold plugin is enabled It writes out the 
requires Mayatomr line and while doing the mayapy background job it crashes 
saying... The mesh 'badgeShape' has no '.ai_translator' attribute. setAttr: 
No object matches name: .ai_translator. Error reading file. 

Strange thing, couldn't understand why it writes out the require line with 
out it actually being used in the scene. So, to fix that I have to load the 
arnold plugin in batch mode, with out any real purpose. 


On Friday, 13 March 2015 15:11:01 UTC+5:30, Fredrik Averpil wrote:
>
> Anyone know if you can remove the "requires" statements which you can see 
> at the top of a Maya Ascii file - but from within Maya?
>
> I'm trying to remove some of these from files which are binary, so I can't 
> just open up the files from outside of Maya and edit the lines out...
>
> Regards,
> Fredrik
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/7ae55164-fb71-4ef4-b7bf-bb7b171f7a5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to