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 Matthew Lowery

 Back
Reply:     1     2     3     4     5     6  

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 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Scripting help please!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="courier">set ReceiverElem = GetValue(&quot;SelectionList
&quot;)</FONT>
<BR><FONT SIZE=2 FACE="courier">set MasterElem = PickElement.Value(&quot
;PickedElement&quot;)</FONT>
<BR><FONT SIZE=2 FACE="courier">set A= Getvalue(MasterElem.Name)</FONT>
<BR><FONT SIZE=2 FACE="courier">AddProp &quot;Custom_parameter_list&quot;, , ,
A + &quot;_my_param&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Thanks in advance,</FONT>
<BR><FONT SIZE=2 FACE="Arial">m@</FONT>
<BR><FONT SIZE=2 FACE="courier">&nbsp;</FONT>
</P>
<BR>
<BR>

<FONT SIZE=3><BR>
<BR>
Disclaimer in effect http://www.videolab.co.za/disclaimer.html<BR>
</FONT>
</BODY>
</HTML>