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 André Adam

 Back
Reply:     1     2     3     4     5     6  

Sorry, did a mistake, you will have to write it like this:

set myProp = AddProp ("Custom_parameter_list", , , A + "_my_param" )

Haven't been testing it before pressing the send button... kind of a bad
habit.

  -Andr�

Andr� Adam wrote:

> Something like this should work:
>
> set ReceiverElem = GetValue("SelectionList")
> set MasterElem = PickElement.Value("PickedElement")
> set A= Getvalue(MasterElem.Name)
> set myProp = AddProp "Custom_parameter_list", , , A + "_my_param"
>
> This way you can reference the new property using the variable myProp.
>
>    -Andr�
>
> Matthew Lowery wrote:
>
>> 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@
>


---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi