Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Menu: Background music path poor coding
[Post New]
Menu:
I just realized that PD converts My Documents, My Music etc... to the actual physical path, which is poor coding design in my book. I should be able to move My Documents around to different drives, without programs even noticing. Unless it is translating this each time and not really hard coding it. Who wants to keep having to fix their menu each time they edit it years down the road. Windows 7 Ultimate 64bit
Velocity Micro
Intel Core 2 CPU 6700 @ 2.66GHz
RAM 6GB
NVIDIA GeForce 8800 GTS v258.96
ViewSonic VX2255wm-4 dual extended display
K-Lite 32bit & 64bit
1680x1050
Windows 7 Basic background no Aero
Hitachi 400gb system dr
ynotfish
Senior Contributor Location: N.S.W. Australia Joined: May 08, 2009 02:06 Messages: 9977 Offline
[Post New]
Hi Ken -

I don't pretend to understand coding, but what I understand is that when you import media into PD there is no actual physical import. What is "imported" is the file directory for each clip, image, audio clip etc.

That means that when the same media, or its parent folder, is moved or renamed on your PC - PD can't find them, hence the prompt to "Browse".

The easiest way to overcome any issues you may be having is to
(a) copy all media needed for a project into a folder at the outset
(b) Pack the project - which effectively does the same thing... Director's Chair > File > Export > Pack Project Materials

Custom menus, PiP objects etc are kept in C:\Users\(name)\Documents\CyberLink\PowerDirector\8.0

Cheers - Tony

This message was edited 1 time. Last update was at Oct 01. 2010 19:24


Visit PDtoots. PowerDirector Tutorials, tips, free resources & more. Subscribe!
Full linked Tutorial Catalog
PDtoots happily supports fellow PowerDirector users!
JL_JL [Avatar]
Senior Contributor Location: Arizona, USA Joined: Oct 01, 2006 20:01 Messages: 6091 Offline
[Post New]
(b) Pack the project - which effectively does the same thing... Director's Chair > File > Export > Pack Project Materials


A pack does a good job for vid, pics, music in the timeline but does not catch the background menu music and other items in the menu which I thought may have been his issue from the title. For these it's a manual job as far as I know and yes the path is hard coded into the files and Tony gave a path that these files are stored and the menus are back a dir C:\Documents and Settings\USER\My Documents\CyberLink\Custom Menus

Jeff

This message was edited 2 times. Last update was at Oct 01. 2010 20:26

James Dotson
Senior Contributor Location: Tennessee Joined: Aug 24, 2009 20:40 Messages: 3066 Offline
[Post New]
It could be considered poor coding under some circumstances. However, with so many versions of Windows out, My Documents doesn't always follow the same absolute path. A reference to a special folder could be used, but what if I use a folder that I created. Broken. In my opinion, a program that uses this many imported files is just easier to create using absolute paths. Relative paths work better when the program can control the files being used. I believe that is what packing the project does for you. __________________________________
CORNBLOSSOM
[Post New]
Thanks, my issue is why convert the virtual path to a hard coded one, it defeats the purpose of these Special Folders. My %HOMEPATH%\My Documents is on E: drive today and maybe I: drive tomorrow, but any program maintaining the Special Folder path won't need to know that or care. Now due to different versions of Windows, maybe that is harder to code for or won't work on a MAC.

This comes from the Wikipedia definition of "My Documents"
Note that "My Documents" in these operating systems is one of a number of Special Folders - a concept introduced in Windows 2000 to add a layer of abstraction between the user interface's presentation of the folder and its physical location and contents. As such, "My Documents" in file load/save dialogs (and in Windows Explorer) doesn't appear as an absolute path. A user can change the physical location of "My Documents" by right-clicking on the "My Documents" icon, selecting the Properties option, and entering a new folder location (path) in the Target tab.

Windows Vista renames "My Documents" as, simply, "Documents". "My Music", "My Pictures" and "My Videos" have also lost their prefix, and have moved to directly under the user's profile directory (C:\Users\[user name]).

As of Windows 7, The "Documents", "Pictures", "Music" and "Videos" folders appear displayed in Windows Explorer with a "My" prefix but are actually still stored in the file system without the prefix (as in Windows Vista).

An application can convert environment strings in a user-supplied path (e.g. "%HOMEPATH%\My Documents") to an actual path by (for example) calling the function ExpandEnvironmentStrings.
Windows 7 Ultimate 64bit
Velocity Micro
Intel Core 2 CPU 6700 @ 2.66GHz
RAM 6GB
NVIDIA GeForce 8800 GTS v258.96
ViewSonic VX2255wm-4 dual extended display
K-Lite 32bit & 64bit
1680x1050
Windows 7 Basic background no Aero
Hitachi 400gb system dr
Powered by JForum 2.1.8 © JForum Team