Author Topic: Script that can remove imported cameras  (Read 1760 times)

0 Members and 1 Guest are viewing this topic.

Script that can remove imported cameras
« 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

Offline Niko Planke

  • Software Tester
  • Global Moderator
  • Full Member
  • *****
  • Posts: 144
  • Total likes: 10
  • QA-Lead, Luxion
Re: Script that can remove imported cameras
« Reply #1 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