Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I cannot set camera's focal length and focus distance

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
595 Views, 4 Replies

I cannot set camera's focal length and focus distance

Hello, I want to set a camera's focal length and focus distance via Python API, I couldn't find any of the functions in the API documentation.Capture.PNG

4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

May I get an answer?

Message 3 of 5
seiferp
in reply to: Anonymous

Try...

 

camera = vrCameraService.getActiveCamera()
camera.setFocalLength(50)
camera.setFocusDistance(7000)
Message 4 of 5
faline.custodio.da.silva
in reply to: Anonymous

@Anonymous 

 

Thanks for posting! See @seiferp reply for the solution.

 

Any other questions? Happy to help! =]

 

 


Faline Custodio Da Silva

Message 5 of 5
Anonymous

Thank you for your answer, I actually have another question how do I set a viewpoint's translation and rotation via Python API?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report