it's been a while, but my rusty jscript says you have to split this:
SetValue("Sources.Materials.DefaultLib.Material.Texture_Array_Switch.values.Item[i].index",
i, null);
}
like this:
SetValue("Sources.Materials.DefaultLib.Material.Texture_Array_Switch.values.Item["
+ i + "].index", i, null);
}
because i is your variable.
On 25 February 2016 at 15:46, Olivier Jeannel <[email protected]>
wrote:
> Hello there,
>
> Following my yesterday question "1 texture per polygon", I ended up
> connecting a huge TextureArraySwitch with up to 95 Textures. Did it by
> hand, took me a while.
>
> Ok no my deep desire is to do it with Jscript.
> Now, I have this :
>
> for (i=0 ; i<10 ; i++){
>
> Application.SIAddArrayElement("Sources.Materials.DefaultLib.Material.Texture_Array_Switch.values");
> }
>
> //it creates 10 entries in the node
>
> I need to populate each index value with incrementing values
>
> for (i=0 ; i<10 ; i++){
> SetValue("Sources.Materials.DefaultLib.Material.Texture_Array_Switch.values.Item[i].index",
> i, null);
> }
>
> But this gives me an error
> He doesn't like the item[i].
>
> Can someone tells me what I'm doing wrong I'm totally new to Jscript :/
>
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected]
> with "unsubscribe" in the subject, and reply to confirm.
>
--
Brandt Animation
www.brandtanim.co.uk
020 7734 0196
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with
"unsubscribe" in the subject, and reply to confirm.