  | | | Spotlight viewports | Spotlight viewports 2005-02-21 - By Nikos Gatos
Back Well thank you Sir. That works great. :-)
__ ____ ____ ____ ____ ____ ____
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Guillaume Laforge Sent: 21 February 2005 12:16 To: XSI@(protected) Subject: Re: Spotlight viewports
//Set your scripting language to Jscript.
//Select your light and run.
//It change the viewport "a" to the selected spot/camera.
var oLight = Selection(0).Name; var oVM = Application.Desktop.ActiveLayout.Views( "vm" ) ; oVM.SetAttributeValue ("activecamera:a", oLight) ;
//Cheers. //Guillaume Laforge //CG artist
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http: //www.w3.org/TR/REC-html40">
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @(protected) {font-family:Wingdings; panose-1 (See http://ose-1.ora-code.com):5 0 0 0 0 0 0 0 0 0;} @(protected) {font-family:Tahoma; panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @(protected) Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Well thank you Sir. That works great. < /span></font><font size=2 color=navy face=Wingdings><span style='font-size:10.0pt;font-family: Wingdings;color:navy'>J</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font> </p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <b><span style='font-weight:bold'>On Behalf Of </span></b>Guillaume Laforge<br> <b><span style='font-weight:bold'>Sent:</span></b> 21 February 2005 12:16<br> <b><span style='font-weight:bold'>To:</span></b> XSI@(protected)<br> <b><span style='font-weight:bold'>Subject:</span></b> Re: Spotlight viewports< /span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>//Set your scripting language to Jscript.</span></font><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>//Select your light and run.</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>//It change the viewport "a" to the selected spot/camera.</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>var oLight = Selection(0).Name;<br> var oVM = Application.Desktop.ActiveLayout.Views( "vm" ) ;<br> oVM.SetAttributeValue ("activecamera:a", oLight) ;</span></font><o:p> </o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>//Cheers. <br> //Guillaume Laforge<br> //CG artist<br> <br> <o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>
|
|
 |