Customize RotationOrder in FBX file
Contents
[
Hide
]
Using Aspose.3D for .NET, Sometimes, developers require fine control over format-specific features, such as changing the
RotationOrder
in the FBX exporter. While there might not be a public API directly exposing this functionality, Aspose.3D for .NET provides ways to achieve such customizations through its flexible architecture.
Here’s how you can handle this in Aspose.3D:
var rvm = Scene.FromFile(@"F1234.rvm");
rvm.RootNode.Accept((Node node) =>
{
node.SetProperty("RotationOrder", 1); //set a custom property, exporter will match this to FBX's property.
return true; //continue to traverse on other nodes
});
rvm.Save(@"test.fbx");
In this example:
- Create a Scene from a RVM file.
- Visit all node in the scene.
- Set custom property: The SetProperty method is used to set the
RotationOrder
property, demonstrating how internal mechanisms can be leveraged to control format-specific features not directly exposed by the public API. - Save the Scene: The scene is saved with the customized
RotationOrder
.
By using such techniques, Aspose.3D allows developers to fine-tune and control specific features of 3D formats, ensuring that detailed and precise requirements are met in various 3D applications.