PDA

View Full Version : deleting Persp cameras


magilla
09-16-2003, 01:39 AM
cameras from imports or copy/paste tend to build up in a scene - anyone know how to delete these?

// Error: line 1: Non-deletable node 'persp2' cannot be deleted. //


--magilla

wgreenlee1
09-16-2003, 02:08 AM
Can you just Hide it or will that not work.
Maybe even putting them into a layer then hiding perhaps.

magilla
09-16-2003, 02:14 AM
nope that's not really what I'm after - thanks anyhoo...

I have a simple script that cycles through views in the active panel - I would like to exand it to cycle through all cameras - but it'll be a pain if I can't get rid of the crap cameras.

--magilla

--
string $panel = `getPanel -withFocus`;
string $view = `lookThru -q`;
if($view=="persp")
lookThroughModelPanel persp1 $panel ;
else if($view=="persp1")
lookThroughModelPanel persp $panel ;
--

gaggle
09-16-2003, 07:32 AM
Following wgreenlee1's idea, you could then add a check so that the script only accepts a camera if it is visible.

I realise you want to delete the cameras, probably for more reasons than just the script, I'm just suggesting hiding the problem can still work. Make a group and move all the garbage in there. Messy, but if it gets you through the scene... :)

CGTalk Moderation
01-16-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.