protected void CheckCameraSettings(FbxCamera origCamera, FbxCamera importCamera, FbxNode origCameraNode, FbxNode importCameraNode) { Assert.AreEqual(origCamera.ProjectionType.Get(), importCamera.ProjectionType.Get()); Assert.AreEqual(origCamera.AspectWidth.Get(), importCamera.AspectWidth.Get()); Assert.AreEqual(origCamera.AspectHeight.Get(), importCamera.AspectHeight.Get()); Assert.AreEqual(origCamera.GetAspectRatioMode(), importCamera.GetAspectRatioMode()); Assert.AreEqual(origCamera.FilmAspectRatio.Get(), importCamera.FilmAspectRatio.Get()); Assert.AreEqual(origCamera.GetApertureWidth(), importCamera.GetApertureWidth()); Assert.AreEqual(origCamera.GetApertureHeight(), importCamera.GetApertureHeight()); Assert.AreEqual(origCamera.GetApertureMode(), origCamera.GetApertureMode()); Assert.AreEqual(origCamera.FocalLength.Get(), importCamera.FocalLength.Get()); Assert.AreEqual(origCamera.GetNearPlane(), importCamera.GetNearPlane()); Assert.AreEqual(origCamera.GetFarPlane(), importCamera.GetFarPlane()); foreach (var customProp in new string[] { "backgroundColor", "clearFlags" }) { FbxProperty property = origCameraNode.FindProperty(customProp); Assert.IsNotNull(property); Assert.IsTrue(property.IsValid()); FbxProperty importBgColorProp = importCameraNode.FindProperty(customProp); Assert.IsNotNull(importBgColorProp); Assert.IsTrue(importBgColorProp.IsValid()); if (property.GetPropertyDataType().Equals(Globals.FbxColor4DT)) { Assert.AreEqual(property.GetFbxColor(), property.GetFbxColor()); } else if (property.GetPropertyDataType().Equals(Globals.FbxIntDT)) { Assert.AreEqual(property.GetInt(), property.GetInt()); } Assert.AreEqual(property.GetFlag(FbxPropertyFlags.EFlags.eUserDefined), importBgColorProp.GetFlag(FbxPropertyFlags.EFlags.eUserDefined)); Assert.AreEqual(property.GetFlag(FbxPropertyFlags.EFlags.eAnimatable), importBgColorProp.GetFlag(FbxPropertyFlags.EFlags.eAnimatable)); } }