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?
 
Basic scripting question..

Basic scripting question..

2005-04-14       - By Lee Hallett

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

I'm trying to modify matts nullifier script, but my scripting is
somewhat below par (non existent).

The two extra things I need to do are
1) Make the null the parent of the object
2) Rename the null to *Objectname*_Null

Anyone got any quick tips!!


Original script:


' nullifier v1.1 by Matt Lowery

Dim A
Dim nul
Dim B

set A=GetValue("SelectionList")
for each ab in A
  GetPrim "Null"
  set nul=GetValue("SelectionList")
  for each nil in nul
    ApplyCns "Pose",nil,ab
    Duplicate nil
    DeleteObj nil
  next
  set B=GetValue("SelectionList")
    for each ba in B
      RemoveAllCns ba
      ApplyCns "Pose", ab, ba    
    next
next



> Lee|3d animation and design..
> Pixel pusher & 'telly colouring in' bloke
>
There are only 10 sorts of people in the World - those that understand
binary, and those that don't.


>  *     BBC Wales | C4 graphics area | Broadcasting House| Llandaff,
> Cardiff. CF5 2QY.
>  *   +44 (0)29 203 23370
> e-*   lee.hallett@(protected)
>
>
>

http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Basic scripting question..</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I'm trying to modify matts nullifier script, but
my scripting is somewhat below par (non existent). </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The two extra things I need to do are</FONT>

<BR><FONT SIZE=2 FACE="Arial">1) Make the null the parent of the object</FONT>

<BR><FONT SIZE=2 FACE="Arial">2) Rename the null to *Objectname*_Null</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Anyone got any quick tips!!</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Original script:</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier">' nullifier v1.1 by Matt Lowery</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier">Dim A</FONT>

<BR><FONT SIZE=2 FACE="Courier">Dim nul</FONT>

<BR><FONT SIZE=2 FACE="Courier">Dim B</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier">set A=GetValue(&quot;SelectionList&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Courier">for each ab in A</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier"
>GetPrim &quot;Null&quot;</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">set
nul=GetValue(&quot;SelectionList&quot;)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">for
each nil in nul</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">ApplyCns &quot;Pose&quot;,nil,ab</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">Duplicate nil</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">DeleteObj nil</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">next
</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">set
B=GetValue(&quot;SelectionList&quot;)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">for each ba in B</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE=
"Courier">RemoveAllCns ba</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE=
"Courier">ApplyCns &quot;Pose&quot;, ab, ba &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; </FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier">next</FONT>

<BR><FONT SIZE=2 FACE="Courier">next</FONT>
</P>
<BR>
<BR>
<UL>
<P ALIGN=CENTER><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Lee|3d animation
and design..<U></U></FONT></SPAN></P>

<P ALIGN=CENTER><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">Pixel pusher &amp;
'telly colouring in' bloke</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG=
"en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
</UL>
<P ALIGN=CENTER><SPAN LANG="en-gb"><FONT SIZE=1 FACE="Arial">There are only 10
sorts of people in the World - those that understand binary, and those that don
't.</FONT></SPAN></P>
<BR>
<UL>
<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Wingdings"><FONT FACE="Courier New"><
/FONT></FONT><FONT FACE="Courier New">&nbsp;</FONT><FONT SIZE=2 FACE="Wingdings"
>*</FONT><FONT FACE="Tahoma">&nbsp;</FONT><FONT SIZE=1 FACE="Tahoma"> &nbsp;
&nbsp;&nbsp;&nbsp; BBC Wales | C4 graphics area | Broadcasting House| Llandaff,
Cardiff. CF5 2QY.</FONT></SPAN><SPAN LANG="en-gb"><B></B></SPAN><SPAN LANG="en
-gb"><B> </B></SPAN>

<BR><B><SPAN LANG="en-us"><FONT SIZE=1 FACE="Wingdings"><FONT FACE="Courier New
"></FONT></FONT><FONT FACE="Courier New">&nbsp;</FONT><FONT SIZE=2 FACE=
"Wingdings">(</FONT></SPAN></B><SPAN LANG="en-us">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<FONT SIZE=1 FACE="Tahoma"> +44 (0)29 203 23370</FONT><B></B></SPAN>

<BR><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Arial">e-</FONT><FONT SIZE=2 FACE=
"Wingdings">*</FONT><FONT FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
<FONT SIZE=1 FACE="Arial">lee.hallett@(protected)</FONT></SPAN><SPAN LANG="en-us">
</SPAN><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B></B></SPAN>
</P>
<BR>
<BR>
</UL>
<br>http://www.bbc.co.uk/<br><br>This e-mail (and any attachments) is
confidential and may contain<br>personal views which are not the views of the
BBC unless specifically<br>stated.<br>If you have received it in error, please
delete it from your system. <br>Do not use, copy or disclose the information in
any way nor act in<br>reliance on it and notify the sender immediately. Please
note that the<br>BBC monitors e-mails sent or received. <br>Further
communication will signify your consent to this.</BODY>
</HTML>