Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to turn a camlight off?
Date: Thu, 26 Jun 2008 09:55:42 -0400
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <g4074u$bfo$1@fred.mathworks.com>
References: <g3vbvi$658$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1214488542 11768 144.212.105.187 (26 Jun 2008 13:55:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jun 2008 13:55:42 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:475977




"Abe Lau" <abe@nonexistancegmail.com> wrote in message 
news:g3vbvi$658$1@fred.mathworks.com...
> it maybe trivial, but I just can't figure out a way to turn
> a camlight off after I issue the command "camlight".  The
> problem is I get more camlight from various directions when
> I plot more stuff on, and I would like to remove all of them.

Store the handle to the CAMLIGHT in a variable when you create it, then use 
its properties (like Visible) to adjust its behavior or delete it when it's 
no longer needed.  If you want to delete camlights you didn't create 
yourself (ones that were created for you automatically) use FINDOBJ.

http://www.mathworks.com/access/helpdesk/help/techdoc/infotool/hgprop/light_frame.html

-- 
Steve Lord
slord@mathworks.com