I am very new to the Maya API and I am trying to do a very simple exporter of blendshapes for a selected object but I can not for the life of me get it to work. The simple function I have is:
for ( iter.reset(); !iter.isDone(); iter.next() )
But the list is always empty if I want MFn::kBlendShapes, for everything else I get the expected list, the return status is always success, is there something special about getting BlendShapes that I am missing. Can anyone suggest what I am doing wrong? Oddly if I just do a simple iterate over the scene with:
Then I get all the blendshapes, but I need to only get the blendshapes for selected objects. Can anyone help?