Pass around pictures in a <values> property


Author
Message
Blackadder
Blackadder
Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)
Group: Forum Members
Posts: 280, Visits: 147

Hi Dave,


are you really sure this works? It would mean that Inquisit parses an item at startup, tests for each element whether it refers to an existing file, and if so, tries to load this file as a picture.


I've put together a sample experiment and attached it (don't bother about the picture selection, it's just for example purposes). The script won't compile because the <%values.currentpic%> isn't parsed as a variable but taken for a file name.


Did you really get something like this to work?



Malte.


Attachments
Twoface.zip (356 views, 149.00 KB)
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: 12K, Visits: 98K

Sorry, Malte, you're right. I was writing from memory -- which isn't a particularly good idea because I have the memory span of an amoeba. With that said, indeed it will not work exactly as I outlined, but it still can be done (I have done so on multiple occasions). If you let me know your email address (via private message), I can shoot you a fully working example script (can't post this one publically). I'll also take the time to assemble a simple demo script which I'll post here in a few days or so.


Thanks,


~Dave


Blackadder
Blackadder
Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)Supreme Being (26K reputation)
Group: Forum Members
Posts: 280, Visits: 147

Hello All,


to take Dave off his duties to assemble an example script, I've attached my clumsy first attempts on run-time picture passing. The script does nothing more than display a single stimulus per trial. The actual picture is drawn from one of two items and assigned to a "canvas" picture that serves the sole purpose of presenting any picture loaded into it. Not much, yet it illustrates everything you need to dynamically feed graphics into one single common picture element. All credit must be given to Dave.


Bye, Malte


Attachments
DynamicPictureLoading.zip (374 views, 149.00 KB)
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: 12K, Visits: 98K

That's a nifty little script -- thank you very much for taking this off my shoulders!


~Dave


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search