|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/24/2008 11:00:25 AM
Posts: 4,
Visits: 26
|
|
My name is Malcolm McCurry at Naval Research Lab in Washington D.C. I'm exploring how best to take advantage of the new MovieObjects in E-Prime BETA 2.0.
One of the things I would like to do is stagger the start/end times for each movie file, but am running into a problem.
I have 4 second movie files, but only want to play 3.5 seconds of them. However, I want the start time to be randomly placed within the first .5 seconds of the file, and the end time to occur 3.5 seconds later.
So I tried setting up the attributes StartTime and EndTime in my TrialList, and set them with c.SetAttrib inside an Inline. However, inside the movie dialog, I can't set the times using the [StartTime] format. When I do this, it appends :00:00:00.000 to the end of the variable, appearing like so: [StartTime]:00:00:00.000. Obviously, I would just want the [StartTime] to replace the automated string.
I get a runtime error when I try to generate. It says Invalid Frame Time, use HH:MM:SS:XX! For my test I put in a text string "00:00:02.000" for start, and "00:00:03.000" for end, which runs correctly when I put them explicitly in the fields, but not as variables.
Please let me know if any more information is needed.
Thanks,
Malcolm
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Yesterday @ 9:44:24 PM
Posts: 698,
Visits: 1,481
|
|
| I have replicated this and it has been noted as a bug for future fixing. The problem is related to the SlideMovie object on the Slide (the MovieDisplay does not have this issue). For many of the properties for the Slide, the [attrib]:const nomenclature is used. For example, if you specify [MyValue] for the X value, it will equate to [MyValue]:center. The reason for this is so that the design/GUI has a place to put the objects. Since it cannot determine a value from [MyValue] all of the controls would not have a place to go and would overlap themselves. This issue has a bug in it because the MovieFrameTime format uses colons and is confusing the system. Until a build is available that fixes this issue you can acheive your desired results by using code similar to the following in an InLine prior to the Slide object: 'Replace Stimulus with the name of your Slide 'Replace Movie1 with the name of your movie component 'Replace StartPosition with the name of the attribute Dim theSlideMovie As SlideMovie Set theSlideMovie = CSlideMovie(Stimulus.States(Stimulus.ActiveState).Objects("Movie1")) theSlideMovie.StartPosition = c.GetAttrib("StartPosition") -Brandon
|
|
|
|