|
Hello,
I’m trying to write a simple script that applies a new texture image to an existing scene, save and exit.
//Open file
file -f -options “v=0” -typ “mayaAscii” -o “OriginalFile.ma”;addRecentFile("OriginalFile.ma", “mayaAscii")
//Apply the new texture
AEassignTextureCB file1.fileTextureName “texture.png” “Best Guess”;
//Save and exit
file -rename “TexturedScene.ma”;
file -f -save -options “v=0” -type “mayaAscii”;
quit -a;
It always dies saying:
// Error: Cannot find procedure “AEassignTextureCB”. //
I have to manually go in and apply the texture. The moment I type “AEassignTextureCB” command in the script editor everything works fine. I just don’t understand MEL sometimes! Thanks in advance for any advice.
|
|
|
|
Hi There,
Please see this script:
C:/Program Files/Autodesk/Maya2009/scripts/AETemplates/AEfileTemplate.mel
Thank You,
Norbert Nacu
|
|
|