I’m an infant tech artist just getting into Python for Maya.
I have a batch of game assets to re-export with an updated shader.
Each asset has its own directory structure with
…Assets\assetName\Source\assetName.mb
…Assets\assetName\Export\assetName.mmf (adobe’s alpine format)
I want to write a python script that will
1.) loop through Assets\ and open each assetName\assetName.mb file
2.) import myNEWshader.mb (which contains only a new shader)2replace myOldShader
3.) replace myOLDshader with my myNEWshader.mb
4.) export the asset to its corresponding assetName\Export\ folder
Manually a tedious process…
I’m certain this is the kind of batch operation gets done all the time by ‘grown up’ tech artists.
I woudln’t presume to ask anyone to write this for me, but if anyone knows of a python script with similar functionality
(and hopefully nice comments) I’d love to take a look at it.