Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Image Set/Image Sequencer
Reply to topic
Author Message
EMebane



Joined: Apr 15, 2019
Posts: 98

PostPosted: Sep 1, 2021 1:05 AM    Post subject: Image Set/Image Sequencer

Is it possible to use the %DF% token when referencing the location of images for the imageSequencer element?

Can the individual images in an animated.gif be accessed by index or will I have to load a list of independent files?

I am able to display an image sequence from loaded files. How may I reference them by index so I can control which image in the sequence is displayed?

I see ImageSet in the Elements but not the Manual. It looks like I might want to get an array of images with imageSequencer and set an ImageSet's image list with that info.
jarek



Joined: Oct 22, 2007
Posts: 910

PostPosted: Sep 1, 2021 8:36 AM    Post subject:

(EDIT)
Yes, %DF% is available in many elements which have file paths.

ImageSet works just like all other "Set" elements. Each image/file is accessed by an index rather then sequentially. So it may be a better option for working with indices.
jarek



Joined: Oct 22, 2007
Posts: 910

PostPosted: Sep 1, 2021 10:32 AM    Post subject:

Correction, I forgot how this works.

Yes, the %DF% variable should work already now with many other elements including the ImageSequencer and ImageSet. If it doesn't, let me know and I will investigate.

I will edit my previous answer to avoid confusion for others who search this forum for answers.
EMebane



Joined: Apr 15, 2019
Posts: 98

PostPosted: Sep 1, 2021 10:52 AM    Post subject:

My goal is to load a sequence of images and dynamically pick one at a time to display from the list.

What's the best way to display an image from among a set of images? Use an element that takes an index of images? Use an element that takes a string like "99.gif"?

The Manual doesn't describe what the Image Sequencer's "loaded files no." does. That number increments every time I Play a design and doesn't seem to represent an index value. I can't find a way to reset it on each Play.

I can get the first image in the list to display, but I can't pick a different image. These are the 2 things I've tried without success:

I've listed 3 images in ImageSet's images array. I've tried passing 0, 1 or 2 to the Select input port to try to select an index.

I tried a SetProperties element connected to the event input port.

What does the logical input on ImageSequencer do? Does that step the frame forward or backward in the sequence? Does the Bidirectional option step forward when true is passed to the element and backwards when false is passed?

I wasn't able to get %DF% to work, btw.
jarek



Joined: Oct 22, 2007
Posts: 910

PostPosted: Sep 1, 2021 11:44 AM    Post subject:

I just tested %DF% with both ImageSet and ImageSequencer. It works fine for me. I put the image in the same folder as the main test design snippet, and created the path like this:

[%DF%\test.BMP]

The "Loaded file no" should be "Loaded file count", it shows number of loaded images. If an image can't be loaded, or if this element has other errors, this value may not be set. It doesn't increment.

In general it is hard to understand a problem from a description. It is much better to try to create a small snippet, try to make it working to fully understand the issue. And if something looks like a BioEra bug, send it to me.
Reply to topic