Scripting help please! 2004-03-23 - By Helge Mathee
Back Scripting help please!well - do
set customPSet = AddProp "Custom_parameter_list", , , A + "_my_param"
afterwards you can access the customPset...
helge -- -- Original Message -- -- From: Matthew Lowery To: 'xsi@(protected)' Sent: Tuesday, March 23, 2004 11:46 AM 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=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>well - do</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>set customPSet = <FONT face=Courier>AddProp "Custom_parameter_list", , , A + "_my_param"</FONT></FONT></DIV> <DIV><FONT face=Courier size=2></FONT> </DIV> <DIV><FONT face=Courier size=2>afterwards you can access the customPset...</FONT></DIV> <DIV><FONT face=Courier size=2></FONT> </DIV> <DIV><FONT face=Courier size=2>helge</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=Matt@(protected) href="mailto:Matt@(protected)">Matthew Lowery</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xsi@(protected) href="mailto:'xsi@(protected)'">'xsi@(protected)'</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 23, 2004 11:46 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Scripting help please!</DIV> <DIV><BR></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> </FONT> </P><BR><BR> <FONT size=3><BR><BR>Disclaimer in effect http://www.videolab.co.za/disclaimer.html<BR></BLOCKQUOTE></FONT></BODY>< /HTML>
|
|