Hey Guys,
Has anyone successfully created a C# standalone, that can push changes into Maya, from the the OpenMaya API?
The goal I was aiming for, was a standalone software that could do basic things within a maya scene, like get scene DagNodes, the Dependancy graph, read skin cluster data, or export selections.
I have run a few tests and get the following error every time I use the OpenMayaCS.dll, in my C# project.
"An unhandled exception of type ‘System.BadImageFormatException’ occurred in MyStandalone.exe
Additional information: Could not load file or assembly ‘openmayacs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. An attempt was made to load a program with an incorrect format."
I’ve looked into all the standard fixes for library load failures, and I am being to assume it just cant be done.
Was hoping someone here might have some experience with this, they can share, or pose a possible alternative.
Im using: maya 2014 sp7, Visual studio, .Net 4.5.2
Cheers,
-K