Actually, on second thought, SetList does work if you take off the array
flag
in the function definition and change the call to R3Set (line 38 in
oops\r3listv.js) to:

R3Set(this.r3obj, R3GLVA_List, value, R3TID_LIST, 0);

Of course you also don't need the R3TNF_ARRAY flag in the R3Do statement
I suggested. Actually

R3Do(listv.r3obj, R3RM_SET, [R3GLVA_List, list]);

seems to be enough.

Juha


Juha Sunnari kirjoitti:
> Hello K-UDA, try this:
>
> list = listv.GetList();
> list.addhead(new r3Root(R3RA_Name, "Thursday"));
> list.addhead(new r3Root(R3RA_Name, "Friday"));
> list.addhead(new r3Root(R3RA_Name, "Saturday"));
> R3Do(listv.r3obj, R3RM_SET, [R3GLVA_List, list, R3TID_LIST, R3TNF_ARRAY]);
>
> I added it to the checkbox hook, seems to work. I don't really know why
> the SetList doesn't work. Probably
> something to do with R3Set. By the way your curve tool script is looking
> impressive. :)
>
> -Juha
>
> K-UDA kirjoitti:
>   
>> Hello List.
>> I added the following codes to the 47th line of
>> \scripting\Intro\gadgets.js.
>>
>> list.addhead(new r3Root(R3RA_Name, "Thursday"));
>> list.addhead(new r3Root(R3RA_Name, "Friday"));
>> list.addhead(new r3Root(R3RA_Name, "Saturday"));
>> listv.SetList(list);
>>
>> And I run the script.
>> However, I got the following error message.
>>     
>>> r3mainw.c/8013: D:/Realsoft/Realsoft3D/scripts/js/oops/r3listv.js:38:
>>> Invalid parameter 3, array expected
>>>       
>> Can anyone solve this problem?
>> Best regards,
>> K-UDA
>>
>>
>>     
>
>
>   

Reply via email to