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: 

Deleting a camera in python scripts?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
505 Views, 2 Replies

Deleting a camera in python scripts?

Hi, I cant find a way to delete a camera through the python scripts. Finding the node and calling deleteNode() will remove that node from the scene graph but it will not delete it from the camera editor.

 

How can I delete a camera in python?

2 REPLIES 2
Message 2 of 3
seiferp
in reply to: Anonymous

With the Python v2 interface

 

#find camera with the name "New Camera
cameraNode = vrCameraService.getCamera("New Camera")

#delete the camera
vrNodeService.removeNodes([cameraNode])

Cheers

Pascal

Message 3 of 3
Anonymous
in reply to: seiferp

Perfect, Thank you!

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

Post to forums  

Autodesk Design & Make Report