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 please!

Scripting help please!

2004-03-23       - By kim aldis

 Back
Reply:     1     2     3     4     5     6  

set prop = addprop( .......


 __ __  

From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Matthew Lowery
Sent: 23 March 2004 10:46
To: 'xsi@(protected)'
Subject: Scripting help please!



Ok this is something that I just can't see a way around so if someone can
help me out it would be great. I have this script I'm trying to write that
creates a custom parameter set based on the name an object that gets picked,
like so:

set ReceiverElem = GetValue("SelectionList")
set MasterElem = PickElement.Value("PickedElement")
set A= Getvalue(MasterElem.Name)
AddProp "Custom_parameter_list", , , A + "_my_param"

Ok so this works fine, now I want to add parameters to this newly created
parameter set, but the parameter set's name changes depending on what object
you picked during the picking session, so how do I select this parameter set
so I can add parameters and reference those parameters later in the script?

Thanks in advance,
m@
 





Disclaimer in effect http://www.videolab.co.za/disclaimer.html



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Scripting help please!</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=812051111-23032004><FONT face=Arial
color=#008080 size=2>set prop = addprop( .......</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid;
MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
 <HR tabIndex=-1>
 <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected)
 [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Matthew
 Lowery<BR><B>Sent:</B> 23 March 2004 10:46<BR><B>To:</B>
 'xsi@(protected)'<BR><B>Subject:</B> Scripting help
 please!<BR></FONT><BR></DIV>
 <DIV></DIV>
 <P><FONT face=Arial size=2>Ok this is something that I just can't see a way
 around so if someone can help me out it would be great. I have this script I
'm
 trying to write that creates a custom parameter set based on the name an
 object that gets picked, like so: </FONT></P>
 <P><FONT face=courier size=2>set ReceiverElem =
 GetValue("SelectionList")</FONT> <BR><FONT face=courier size=2>set MasterElem
 = PickElement.Value("PickedElement")</FONT> <BR><FONT face=courier size=2>set
 A= Getvalue(MasterElem.Name)</FONT> <BR><FONT face=courier size=2>AddProp
 "Custom_parameter_list", , , A + "_my_param"</FONT> </P>
 <P><FONT face=Arial size=2>Ok so this works fine, now I want to add
parameters
 to this newly created parameter set, but the parameter set's name changes
 depending on what object you picked during the picking session, so how do I
 select this parameter set so I can add parameters and reference those
 parameters later in the script?</FONT></P>
 <P><FONT face=Arial size=2>Thanks in advance,</FONT> <BR><FONT face=Arial
 size=2>m@</FONT> <BR><FONT face=courier size=2>&nbsp;</FONT> </P><BR><BR>
<FONT
 size=3><BR><BR>Disclaimer in effect
 http://www.videolab.co.za/disclaimer.html<BR></BLOCKQUOTE></FONT></BODY><
/HTML>