Hi there;

I am both new to Maya , its API and this forum too, totally a newbie

I have been trying to rotate the camera just 180 degrees by the y-axis. But I couldnt managed to do so by the method rotateby in MFnTransform function set.
What I all have done is and it seems that nothing ever changes

const double rotation [3] = {0, 180.0, 0.0};
MTransformationMatrix::RotationOrder order;
fnTransform.rotateBy(rotation, order, MSpace::kObject);

Actually I dont know how to use this method
Any ideas will be appreciated.

Thanks a lot

Melis

  • created

    Mar '07
  • last reply

    Mar '07
  • 1

    reply

  • 1.5k

    views

  • 1

    user

CODE
const double rotation [3] = {0, 180.0, 0.0};
fnTransform.rotateBy(rotation, MTransformationMatrix::kXYZ, MSpace::kObject);

the default value for the enum MTransformationMatrix::RotateOrder is kInvalid, so make sure you actually specify a valid order enum....