フィルターのクリア

How can I retrieve the handle for a camlight in the current figure?

4 ビュー (過去 30 日間)
amatuercoder
amatuercoder 2016 年 4 月 26 日
コメント済み: amatuercoder 2016 年 4 月 28 日
I am trying to retrieve a camlight handle from the current figure, then be able to adjust the camlight position. Something like...
handle = somehow get the camlight light;
camlight(handle,'right');
any thoughts?
Thanks in advance

採用された回答

Subhra Saha
Subhra Saha 2016 年 4 月 28 日
You can get the camlight handle from the return value that camlight returns or you can use findobj to retrieve the camlight handle. I have posted a code snippet example to explain the same:
surf(peaks) axis vis3d h = camlight('left'); for i = 1:20; camorbit(10,0) camlight(h,'left') pause(.1) end
l = findobj(gcf,'Type','Light')
Hope this Helps!!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by