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 kim aldis

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

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.