ABC export on iCloud fail


#1

I have a project on iCloud and if I export alembic with Python, Maya does not create the ABC file. Exporting from menu works.

eval( 'AbcExport -j "-frameRange 101 101 -dataFormat ogawa -root |BENDER:BENDER|BENDER:BENDER_GEO -file /Users/kiryha/Library/Mobile Documents/com~apple~CloudDocs/DATA/PROJECTS/FUTURAMA/PROD/3D/cache/alembic/REEL_01/010/SHOT_010/BENDER.abc" ')

// Warning: Ignoring unsupported flag: Documents/com~apple~CloudDocs/DATA/PROJECTS/FUTURAMA/PROD/3D/cache/alembic/REEL_01/010/SHOT_010/BENDER.abc // 

And mac OS related question: how to create an executable file to run Maya, and how to create a shortcut for it on desktop. On windows, I am using a run.bat

"C:\Program Files\Autodesk\Maya2015\bin\mayapy.exe" %cd%\runMaya.py

Need to replicate this on mac, but now luck for now.


#2

Bump to the second question — bat file on mac OS!


#3

Solution for the executable python: https://chimpy.wordpress.com/2010/08/29/mac-os-x-shortcut-link-to-python-script/
To get my Maya wrapper work with the executable I had to change os.path.dirname(file) to os.getcwd()