for picture element, calling more than one item element


Author
Message
nrouhani
nrouhani
Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)
Group: Forum Members
Posts: 83, Visits: 261
hello, 

I am trying to list several item names within a picture element, but i'm getting a warning. How do I properly list several items?

<picture oldStim>
/ items = stim1_Indoor, stim1_Outdoor, stim2_Indoor, stim2_Outdoor
/ size = (30%, 30%)
/ select = values.oldStim
</picture>
 
<item stim1_Outdoor>
/1 = "outdoorPics/Outdoor_1.jpg"
/2 = "outdoorPics/Outdoor_2.jpg"
/3 = "outdoorPics/Outdoor_3.jpg"
/4 = "outdoorPics/Outdoor_4.jpg"
/5 = "outdoorPics/Outdoor_5.jpg"
</item>

<item stim2_Outdoor>
/1 = "outdoorPics/Outdoor_27.jpg"
/2 = "outdoorPics/Outdoor_28.jpg"
/3 = "outdoorPics/Outdoor_29.jpg"
/4 = "outdoorPics/Outdoor_30.jpg"
/5 = "outdoorPics/Outdoor_31.jpg"
</item>

<item stim1_Indoor>
/1 = "indoorPics/Indoor_1.jpg"
/2 = "indoorPics/Indoor_2.jpg"
/3 = "indoorPics/Indoor_3.jpg"
/4 = "indoorPics/Indoor_4.jpg"
/5 = "indoorPics/Indoor_5.jpg"
</item>

<item stim2_Indoor>
/1 = "indoorPics/Indoor_27.jpg"
/2 = "indoorPics/Indoor_28.jpg"
/3 = "indoorPics/Indoor_29.jpg"
/4 = "indoorPics/Indoor_30.jpg"
/5 = "indoorPics/Indoor_31.jpg"
</item>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
nrouhani - Sunday, September 17, 2017
hello, 

I am trying to list several item names within a picture element, but i'm getting a warning. How do I properly list several items?

<picture oldStim>
/ items = stim1_Indoor, stim1_Outdoor, stim2_Indoor, stim2_Outdoor
/ size = (30%, 30%)
/ select = values.oldStim
</picture>
 
<item stim1_Outdoor>
/1 = "outdoorPics/Outdoor_1.jpg"
/2 = "outdoorPics/Outdoor_2.jpg"
/3 = "outdoorPics/Outdoor_3.jpg"
/4 = "outdoorPics/Outdoor_4.jpg"
/5 = "outdoorPics/Outdoor_5.jpg"
</item>

<item stim2_Outdoor>
/1 = "outdoorPics/Outdoor_27.jpg"
/2 = "outdoorPics/Outdoor_28.jpg"
/3 = "outdoorPics/Outdoor_29.jpg"
/4 = "outdoorPics/Outdoor_30.jpg"
/5 = "outdoorPics/Outdoor_31.jpg"
</item>

<item stim1_Indoor>
/1 = "indoorPics/Indoor_1.jpg"
/2 = "indoorPics/Indoor_2.jpg"
/3 = "indoorPics/Indoor_3.jpg"
/4 = "indoorPics/Indoor_4.jpg"
/5 = "indoorPics/Indoor_5.jpg"
</item>

<item stim2_Indoor>
/1 = "indoorPics/Indoor_27.jpg"
/2 = "indoorPics/Indoor_28.jpg"
/3 = "indoorPics/Indoor_29.jpg"
/4 = "indoorPics/Indoor_30.jpg"
/5 = "indoorPics/Indoor_31.jpg"
</item>

This is not possible. A <picture> element can only reference a single <item> element, not multiple (how would the <picture> element know which <item> element to use at any given point?). You need to put the images all in a single <item> element, and you can then select the items you want via the respective item _numbers_ by using e.g. <list> elements: https://www.millisecond.com/forums/FindPost21766.aspx



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search