movies in metacard?

Klaus Major klaus at major-k.de
Thu Sep 8 15:25:53 CDT 2005


Hi Eric,

> In metacard you have these things called players... interesting.
>
> You tell the player the location of the filename. Also nice. E.g.
>
> directory/directory/foo.mov
>
> ok. nice so far. Here is my question: How can I get metacard to  
> know that the
> file I am referring to is right there in the same folder as  
> metacard *without
> indicating the full directory structure (e.g.
> c:\programs\metacard\project\foo.mov)?
>
> Is my question clear? I want to avoid indicating the entire  
> directory structure
> for obvious cross platform compatability on distribution. I'd  
> rather not import
> all the movies. I want to be able to refer to them locally either  
> as in the
> same directory as the MC standalone or in a subdirectory of the  
> directory in
> which the MC standalone is found *regardless* of the higher levels  
> of the
> directory "above" the standalone.
>
> Is that possible?

Yes :-)

> How?

When you start a standalone, "the directory" = the folder where the  
standalone resides.

Thus you can simply refer to "relative" files/pathnames.

Like this:

Standalone.exe
    Moviefolder
        moovie.mov
    Imagefolder
        nice_image.jpg
etc...

So you can simply set the filename of your player to:

Moviefolder/movie.mov

I do this all the time, never had any problems.
Be careful if you set "the directory" in your scripts! ;-)

When developing i always set the directory to the folder witht he  
stack(s)
i am creating so i can use relative paths even during development.

My nice MC plug-in "2lz3" also provides a tool that can convert absolute
pathnames to relative ones (among other nice features ;-)!

So you can develop with absolute paths and then before creating a  
standalone
i convert them to reltive paths, very handy :-)

Hope that helps...


Best from germany

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the metacard mailing list