Scala - Digital Signage Software [Logo]
Languages: EnglishGermanPolishJapaneseNorwegianFrench
  Markets Products Partners Services Support About Us  
Scala Support Scala Celebrates 20 Years of Innovation and Leadership

Scala Player not displaying image from variable

Tuesday, 04/10/2007 -- by Jeff Vormittag. Subject: Scala Player not displaying image from variable

I am trying to get our weather rss feed to run in Scala player. The image file is dynamic (like the weather) and is brought over from VB script into Scala script via a variable "wcode1 "(as below)...

This code displays fine in Designer, but the players don't show the images-- all the other data comes over fine, just the images are missing. I have uploaded all the possibleweather image files into the ContentManager root folder

      :"^"G:\scala\main\!(wcode1).png^""
      Clip(57, 73, "G:\Scala\main\!(wcode1).png", Face(On, Pen(2)), Update(Normal), Operation(On, ChromaKey($ffffff, Delta(2), Feather(0))));

An example value for !wcode1 would be "PartlyCloudy" which would require the image called PartlyCloudy.png to be displayed.

Is there anything wrong with the above notation? or is there something extra I need to do to get all the possible image files loaded on to the players? Any help would be appreciated.

Thanks!
J

Tuesday, 04/10/2007 -- by Marvin Droogsma. Subject: Images missing

You can put all the images in the CM you wish, but it has to know to which players to distribute. The players use a different path for the images, they will look for it in their own contentfolder.

In CM select MEDIA, go to the media you need to share and in properties check 'Make available as non-scheduled content' to be able to distribute it to different players.

Hope this helped!

Marvin

Wednesday, 04/11/2007 -- by Jeff Vormittag. Subject: Scala Player not displaying image from variable

Thanks for the fast response Marvin...
I made the change, but I am still not getting the images to show up.
Within CM, I went into each indvidual .png media item, and selected "make available as non-scheduled content" and saved each one. According to CM, the Player can now 'see' the .png files-- which is an improvment.
But I am wondering if it is not something to do with the different filename paths between Designer and Player. Question: When I PUBLISH the Scala script, do I need to check-off, or not check-off the option "remember path in target"? (can't recall exact wording).
Also, within designer, is it correct to specify the local path for the PNG files within the scala script?
Probably related to this confusion is the fact that my player is reporting errors "script a8e7f77.scb did not play correctly". One more question: How do I decipher which .sca script did not play correctly based on the error message?

Wednesday, 04/11/2007 -- by Marvin Droogsma (www.pthgroep.nl). Subject: Paths

My guess is that you should have the player work out the correct path. If Scala needs a file, it will search for it in its contentfolders and/or get it from the CM. But maybe John Schilling from Scala could shed some light on this subject.

I mostly use Vbscript with weathericons, so I'm not quite sure how you should solve this particular case. Experimenting should be a good start...

On the error, try looking in de log-folder Scala player fills.
It's in "C:\Documents and Settings\All Users\Application Data\Scala\InfoChannel Player 5\Logs"

Good luck!

Thursday, 04/12/2007 -- by Jeff Vormittag. Subject: Can John Schilling comment?

I've finally been able to get the weather images to appear in the players but my solution is neither elegant nor efficient.
Ideally I was trying to use a single CLIP statement with a variable to specify the image filename. E.G. Clip(57, 73, "G:\Scala\main\!(wcode1).png", Face(On, Pen(2....... chopped for brevity

But as long as I specified the Image filename as a variable, the player logs would show that the player could not find the filename of the image file. If I removed the variable and explicitly named a proper image filename, the player finds the image file fine. Whenever I introduce a variable, it appears as though the player is inheriting the PATH of the file from Designer...which of course is not relevant within the Player.

As it sits right now, I have over twenty IF statements in my Scala script as follows:
{Group:
if (!wcode1="cloudy11");
Clip(57, 73, cloudy11.png, ....... chopped for brevity
}
{Group:
if (!wcode1="cloudy12");
Clip(57, 73, cloudy12.png, ....... chopped for brevity
}
....and on...and on....and on....

I know, not elegant, but it is the only solution that I have right now.
So my question is: What notation/syntax or what PATH do I need to specify to get my CLIP statement to work with a variable?

Also within Designer.... in the PUBLISH diaglogue box there's an option that says something like: "Remember path in target". Should this be checked off or not? I'm not clear on what this means.

Thanks again.
J

Friday, 04/13/2007 -- by Marvin Droogsma (www.pthgroep.nl). Subject: Clips

Have you tried out not stating a path et all? Just the image name?

Remembering path will point to that EXACT path, so if that file exists on th eplayer in that EXACT path, it shows.

Friday, 04/13/2007 -- by Jeff Vormittag. Subject: Paths

When I just state the image variable (i.e. with no path) the Designer automatically adds a local path when I PUBLISH the script.

One thing I have not yet tried is to explicitly state the path where the file would exist in the Scala PLAYER. This 'player path' would be irrelevant to Designer, but that shouldn't matter. I'll give it try...Thanks.


Back: ajax support

   Discussions 2005 Index   
(Page 66 of 230)

Next: how apply vbscript with scala

Additional Information
Request DVD - Concepts and demo
Contact Scala Sales
Search