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?
 
Scripting help - PathCns

Scripting help - PathCns

2005-06-01       - By Juan Brockhaus

 Back
Reply:     1     2     3     4     5  

Hi Demian,

I've added a modified version of your script. it opens up the PPG of all
pathcns in one multi-PPG.
as a tip, I would suggest you to learn about the object mode, which is much
faster in scripting.
you could speed up your script by feeding arrays with your loop and do a
'multi' path constrain and then set the different values with the object
mode.

cheers,

Juan





-- --Original Message-- --
From: Demian Zarins [mailto:demian.zarins@(protected)]
Sent: 01 June 2005 13:39
To: xsi@(protected)
Subject: Scripting help - PathCns



I´m in need of some scripting help here :) I´m not very good at it so
step by step help would be appreciated.

In my script (se attached script). I´m trying to make a more versatile
duplicate/animation to path
setup. What I would like to have is the possibility to have the PathCns PPG
come up at the
end of the script so that I can set these properties without hardcoding it
as I do now.


                       SetValue oSelection(i).Name +
".kine.pathcns.affbyori1", True
                       SetValue oSelection(i).Name +
".kine.pathcns.tangent", True
                       SetValue oSelection(i).Name + ".kine.pathcns.dirx",
-1
                       SetValue oSelection(i).Name + ".kine.pathcns.diry",
0
                       SetValue oSelection(i).Name + ".kine.pathcns.dirz",
0
                       SetValue oSelection(i).Name +
".kine.pathcns.upvct_active", True
                       SetValue oSelection(i).Name + ".kine.pathcns.roll",
45


Maybe there is a built in way of doing this, in that case please share it
with me :)
If anyone can set me in the right direction I would be thankfull.

TIA

Demian




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
D E M I A N    Z A R I N S
Projektledare
S V T -> Växthuset - The Green House
Sveriges Television
Oxenstiernsg 26
105 10 STOCKHOLM
Phone: +46 8 784 3312 ->mobile:+46 709-951984




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/2005





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/2005

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">


<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=405251113-01062005>Hi
Demian,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=405251113-01062005>I've
added a modified version of your script. it opens up the PPG of all pathcns in
one multi-PPG.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=405251113-01062005>as a
tip, I would suggest you to&nbsp;</SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=405251113-01062005>learn about the object mode, which is
much
faster in scripting.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=405251113-01062005>you could speed up your script by feeding
arrays with your loop&nbsp;and do a 'multi' path constrain and then set the
different values&nbsp;with the object mode.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005>cheers,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005>Juan</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=405251113-01062005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Original Message-- --<BR><B>From:</B> Demian Zarins
 [mailto:demian.zarins@(protected)]<BR><B>Sent:</B> 01 June 2005 13:39<BR><B>To:</B
>
 xsi@(protected)<BR><B>Subject:</B> Scripting help -
 PathCns<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>I´m in need of
 some scripting help here :) I´m not very good at it so </FONT><BR><FONT
 face=sans-serif size=2>step by step help would be appreciated.
 </FONT><BR><BR><FONT face=sans-serif size=2>In my script (se attached script)
.
 I´m trying to make a more versatile duplicate/animation to path</FONT>
 <BR><FONT face=sans-serif size=2>setup. What I would like to have is the
 possibility to have the PathCns PPG come up at the</FONT> <BR><FONT
 face=sans-serif size=2>end of the script so that I can set these properties
 without hardcoding it as I do now.</FONT> <BR><BR><BR><FONT face=sans-serif
 size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; SetValue oSelection(i).Name + ".kine.pathcns.affbyori1",
 True</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetValue
 oSelection(i).Name + ".kine.pathcns.tangent", True</FONT> <BR><FONT
 face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp
;
 &nbsp; &nbsp; &nbsp; &nbsp; SetValue oSelection(i).Name +
 ".kine.pathcns.dirx", -1</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp
;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
SetValue
 oSelection(i).Name + ".kine.pathcns.diry", 0</FONT> <BR><FONT face=sans-serif
 size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; SetValue oSelection(i).Name + ".kine.pathcns.dirz", 0</FONT>
 <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetValue oSelection(i).Name +
 ".kine.pathcns.upvct_active", True</FONT> <BR><FONT face=sans-serif
 size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; SetValue oSelection(i).Name + ".kine.pathcns.roll", 45</FONT>
 <BR><BR><BR><FONT face=sans-serif size=2>Maybe there is a built in way of
 doing this, in that case please share it with me :)</FONT> <BR><FONT
 face=sans-serif size=2>If anyone can set me in the right direction I would be
 thankfull.</FONT> <BR><BR><FONT face=sans-serif size=2>TIA</FONT>
 <BR><BR><FONT face=sans-serif size=2>Demian</FONT> <BR><FONT face=sans-serif
 size=2><BR><BR><BR><BR>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- ---- ---- ---- ---<BR>D
 E M I A N &nbsp; &nbsp;Z A R I N S<BR>Projektledare<BR>S V T -&gt; Växthuset
-
 The Green House<BR>Sveriges Television<BR>Oxenstiernsg 26<BR>105 10
 STOCKHOLM<BR>Phone: +46 8 784 3312 -&gt;mobile:+46
 709-951984<BR><BR></FONT><BR>
 <P><FONT size=2>--<BR>No virus found in this incoming message.<BR>Checked by
 AVG Anti-Virus.<BR>Version: 7.0.322 / Virus Database: 267.3.3 - Release Date:
 31/05/2005<BR></FONT></P>
 <P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE></BODY></HTML>
<BR>

<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Anti-Virus.<BR>
Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/2005<BR>
</FONT> </P>

<P><FONT SIZE=2 FACE="Arial"> </FONT> </P>