  | | | Basic scripting question.. | Basic scripting question.. 2005-04-14 - By Lee Hallett
Back 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("SelectionList")</FONT>
<BR><FONT SIZE=2 FACE="Courier">for each ab in A</FONT>
<BR> <FONT SIZE=2 FACE="Courier" >GetPrim "Null"</FONT>
<BR> <FONT SIZE=2 FACE="Courier">set nul=GetValue("SelectionList")</FONT>
<BR> <FONT SIZE=2 FACE="Courier">for each nil in nul</FONT>
<BR> <FONT SIZE=2 FACE="Courier">ApplyCns "Pose",nil,ab</FONT>
<BR> <FONT SIZE=2 FACE="Courier">Duplicate nil</FONT>
<BR> <FONT SIZE=2 FACE="Courier">DeleteObj nil</FONT>
<BR> <FONT SIZE=2 FACE="Courier">next </FONT>
<BR> <FONT SIZE=2 FACE="Courier">set B=GetValue("SelectionList")</FONT>
<BR> <FONT SIZE=2 FACE="Courier">for each ba in B</FONT>
<BR> <FONT SIZE=2 FACE= "Courier">RemoveAllCns ba</FONT>
<BR> <FONT SIZE=2 FACE= "Courier">ApplyCns "Pose", ab, ba </FONT>
<BR> <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 & '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"> </FONT><FONT SIZE=2 FACE="Wingdings" >*</FONT><FONT FACE="Tahoma"> </FONT><FONT SIZE=1 FACE="Tahoma"> 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"> </FONT><FONT SIZE=2 FACE= "Wingdings">(</FONT></SPAN></B><SPAN LANG="en-us"> <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"> </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>
|
|
 |