Aim camera in .NET api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm new to Maya software and Maya APIs. I'm creating a plugin to export the scene using .NET API.
About camera and aim,
In Maya i create a "Camera and Aim" which create a group with a camera and an aim as children.
I'm iterating though DAG to retreive the camera (MFnCamera).
How do i get the aim/locator a camera is binded to?
Alternativelly, i can iterate through DAG filtering kLocator only and then find the one with matching "lookAt" property.
How do i get the value of the property "lookAt" of the camera and the one of the aim?
Seems like there is nothing related to aim/target/controls in the API for class MFnCamera...
When i select the camera, there are 3 tabs in the Attribute Editor window on the right side:
- "camera1" related to Transform. I can retreive those values using a MFnTransform function set.
- "cameraShape1" related to Camera. I can retreive those values using a MFnCamera function set.
- "camera1_group" related to link between camera and aim. How to retreive this?
Answering anyone of this question would solve my problem.
Thanks!