KeyShot Forum

Technical discussions => General discussion => Topic started by: Dion Christensen on June 16, 2021, 01:38:18 AM

Title: Script that can remove imported cameras
Post by: Dion Christensen on June 16, 2021, 01:38:18 AM
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
Title: Re: Script that can remove imported cameras
Post by: Niko Planke on June 22, 2021, 11:10:16 PM
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