Basic scripting question.. 2005-04-14 - By kim aldis
Back see below, Lee add the line set oRoot = <blah> note that I've commented out the two lines GetPrim "Null" and set nul = <blah> and replaced with the line set nul = GetPrim( blah ) use "TheRootofAllEvil" and "Money" are pathetic attemps at illustrative humour and may be changed to suit your own personal needs or perversions. ;-)
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Lee Hallett Sent: 14 April 2005 20:12 To: XSI@(protected) Subject: Basic scripting question..
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 [kim aldis]
set oRoot = GetPrim( "Null", "TheRootofAllEvil" )
set A=GetValue("SelectionList") for each ab in A ' GetPrim "Null" ' set nul=GetValue("SelectionList") [kim aldis]
set nul = GetPrim( "Null", "Money", oRoot) 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.
|
|