Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Spotlight viewports

Spotlight viewports

2005-02-21       - By Nikos Gatos

 Back
Reply:     1     2     3  

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>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;the viewport &quot;a&quot; to&nbsp;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( &quot;vm&quot; ) ;<br>
oVM.SetAttributeValue (&quot;activecamera:a&quot;, 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>