Author Topic: Maya to pysys.batchtools possible?  (Read 1581 times)

Is there a better way to get a selected mesh inside of Maya itself to run through sbsbaker ?

I came up with a hacky solution where I export my selected mesh, and the sbsbaker reads the firepath of the .obj, but I am sure there is a cleaner way to do it, since I think the Substance Maya batch plugin works entirely inside of Maya.

I know it requires a string filepath, but I don't know what the string should be while having an object selected in Maya.

Code: [Select][0] doesn't work. The string title of my selected object also doesn't work, so I am lost. :-\



The baker consumes fbx and obj files on disk. In order to get this to work you need to export the selected object to a file and call sbsbaker with the path to the saved file which seems to be the approach you are using at the moment.

Dang,I was hoping there would be a more elegant solution ;D

I know that Froyak wrote it, but do you know how the maya plug-in took the mesh as inputs when it was still maintained ?

As far as I can see, the api and the .mel script loads up the baker exe

You can look at it directly here:

I'm pretty sure it exports some kind of mesh and loads it in the bakers though.