I found the problem, but I'm not sure how to fix it.
MFnTransform CameraTransform(CamObjectParent);
fout\_Info << "Parent type: " << CamObjectParent.apiTypeStr() << endl;
CamObjectChild = CameraTransform.child(0);
fout\_Info << "Child type: " << CamObjectChild.apiTypeStr() << endl;
CamObjectParent is type kTransform
CamObjectChild is type kCamera
so far so good.
MFnCamera fnCamera(CamObjectChild);
fout\_Info << "Camera Name: " << fnCamera.name() << endl;
the name is cameraShape1!!! This has much different attributes than camera1
Why is it giving me cameraShape1??
Thanks,
Dave