Script that can remove imported cameras

Started by Dion Christensen, June 16, 2021, 01:38:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dion Christensen

Hello everyone

Is there a script that can be used to remove specific cameras from the camera list..??
Yes I know that I can just select them in the list and then delete, thats not the point in this - to get a bettet understanding of this see problem description below.

Problem description:
When importing from CREO Parametric. Keyshot converts all view angles into cameras e.g. FRONT, LEFT, RIGHT, BACK and so on.
We have over 8000 parts that we are making new product images for using Keyshot.

So my question again, is there an automatic way to remove all of the unwanted cameras using something like Python script..??
I don't know how to program in Python so if someone could help me with this, it would be greatly appreciated :)

// Dion

Niko Planke

Hello Dbrogaard,

It should be possible to achieve this using a script.
A combination of getCameras(...) and removeCamera(...) should enable you to remove cameras via scripting.
I suggest asking in the scripting section if someone could help writing such a script.

//Niko