How to make task including movies compatible for mac and windows?


Author
Message
CharlotteV
CharlotteV
Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)
Group: Forum Members
Posts: 17, Visits: 110
Hello, because we want to use a task that includes movies and we would like to make it compatible for windows and mac we tried to use the following code:

<include>
/ precondition=[computer.platform == "windows"]
/ file="wmv_videos.exp"(WHERE DOES THIS REFER TO?)
</include>

<include>
/ precondition=[computer.platform == "mac"]
/ file="mov_videos.exp" (WHERE DOES THIS REFER TO?)
</include>

However, it does not work. Now I read on this forum that it should not be included in a batchfile (as we tried first) but in the file of the task which included the movies. However, I don't really get where to put the code and what other things we need to redefine. Our code looks like this:

<item videoFear>
/1="Stimuli morph task/02_fear.wmv"
/2="Stimuli morph task/10_fear.wmv"
/3="Stimuli morph task/16_fear.wmv"
/4="Stimuli morph task/20_fear.wmv"
/5="Stimuli morph task/33_fear.wmv"
/6="Stimuli morph task/37_fear.wmv"
</item>

<video videoAngry>
/ items = videoAngry
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<item videoAngry>
/1="Stimuli morph task/02_angry.wmv"
/2="Stimuli morph task/10_angry.wmv"
/3="Stimuli morph task/16_angry.wmv"
/4="Stimuli morph task/20_angry.wmv"
/5="Stimuli morph task/33_angry.wmv"
/6="Stimuli morph task/37_angry.wmv"
</item>

<video videoHappy>
/ items = videoHappy
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<item videoHappy>
/1="Stimuli morph task/02_happy.wmv"
/2="Stimuli morph task/10_happy.wmv"
/3="Stimuli morph task/16_happy.wmv"
/4="Stimuli morph task/20_happy.wmv"
/5="Stimuli morph task/33_happy.wmv"
/6="Stimuli morph task/37_happy.wmv"
</item>

<video videoSad>
/ items = videoSad
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<item videoSad>
/1="Stimuli morph task/02_sad.wmv"
/2="Stimuli morph task/10_sad.wmv"
/3="Stimuli morph task/16_sad.wmv"
/4="Stimuli morph task/20_sad.wmv"
/5="Stimuli morph task/33_sad.wmv"
/6="Stimuli morph task/37_sad.wmv"
</item>

<block MorphTask>
/ preinstructions = (MorphTaskStart)
/ trials = [1-24 = noreplace(videoFear,videoAngry,videoHappy,videoSad)]
/ ontrialbegin = [text.focus.textcolor = values.focuscolor]
/ postinstructions = (MorphTaskEnd)
</block>

So can someone advice us on where to put this code and what other changes we need to make?

Thanks!
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: 104K
CharlotteV
CharlotteV
Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)
Group: Forum Members
Posts: 17, Visits: 110
Thanks! But what am I doing wrong now?

In my batchfile I refer to a file that is (partly) coded as follows:

<video videoExample>
/ items = videoExample
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<video videoPractice>
/ items = videoPractice
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<video videoFear>
/ items = videoFear
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<video videoAngry>
/ items = videoAngry
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<video videoHappy>
/ items = videoHappy
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<video videoSad>
/ items = videoSad
/ position = (50% , 50%)
/ size = (256px,256px)
</video>

<include>
/ precondition=[computer.platform == "windows"]
/ file="wmv_videos.exp"
</include>

<include>
/ precondition=[computer.platform == "mac"]
/ file="mov_videos.exp"
</include>

And then I made the wmv_videos.exp as follows:

<item videoExample>
/1="Stimuli morph task/examples/25_angry.wmv"
</item>

<item videoPractice>
/1="Stimuli morph task/examples/07_fear.wmv"
/2="Stimuli morph task/examples/25_sad.wmv"
</item>

<item videoFear>
/1="Stimuli morph task/02_fear.wmv"
/2="Stimuli morph task/10_fear.wmv"
/3="Stimuli morph task/16_fear.wmv"
/4="Stimuli morph task/20_fear.wmv"
/5="Stimuli morph task/33_fear.wmv"
/6="Stimuli morph task/37_fear.wmv"
</item>

<item videoAngry>
/1="Stimuli morph task/02_angry.wmv"
/2="Stimuli morph task/10_angry.wmv"
/3="Stimuli morph task/16_angry.wmv"
/4="Stimuli morph task/20_angry.wmv"
/5="Stimuli morph task/33_angry.wmv"
/6="Stimuli morph task/37_angry.wmv"
</item>

<item videoHappy>
/1="Stimuli morph task/02_happy.wmv"
/2="Stimuli morph task/10_happy.wmv"
/3="Stimuli morph task/16_happy.wmv"
/4="Stimuli morph task/20_happy.wmv"
/5="Stimuli morph task/33_happy.wmv"
/6="Stimuli morph task/37_happy.wmv"
</item>

<item videoSad>
/1="Stimuli morph task/02_sad.wmv"
/2="Stimuli morph task/10_sad.wmv"
/3="Stimuli morph task/16_sad.wmv"
/4="Stimuli morph task/20_sad.wmv"
/5="Stimuli morph task/33_sad.wmv"
/6="Stimuli morph task/37_sad.wmv"
</item>

And the mov file in the same way. What am I doing wrong? 


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: 104K
#1: <include> elements do not belong in a <batch> file. They belong in the actual *script* files.
#2: / precondition=[computer.platform == "windows"]

"windows" is not what the computer.platform property returns under Windows operating systems. It returns "win".

CharlotteV
CharlotteV
Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)Esteemed Member (2.3K reputation)
Group: Forum Members
Posts: 17, Visits: 110
Ok thanks, it works!
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: 104K
Great!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search