To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 17156
17155  |  17157
Subject: 
Re: Straightening Up the MPD Format
Newsgroups: 
lugnet.cad
Date: 
Fri, 2 Apr 2010 20:09:50 GMT
Viewed: 
22951 times
  
In lugnet.cad, Don Heyse wrote:
In lugnet.cad, Michael Heidemann wrote:
In lugnet.cad, Philippe Hurbain wrote:
What if we make a recommendation that new software with MPD support
optionally includes parent object's file name in its MPD-internal name?
And if the software has an unpack function, user may choose to keep that
safer name or to restore its original name. Of course the program should
not freak out when confronted to an MPD file made by older software.

I am not sure this is really necessary. The two "door.ldr" model must
reside in different folders, so if you encode relative path in file name
it should work (not tested with current tools though...)

I have been faced with this problem some time ago at my application
MPDCenter.  I had nearly the same idea but I decided to use "&&" to
combine the files that should be in the same file because I do not
expect any filename to contain "&&".

Example:
Model1.ldr
File1.ldr
File2.ldr

Model2.ldr
File1.ldr
File2.ldr

Will be combined into
Model3.ldr
Model1.ldr&&File1.ldr
Model1.ldr&&File2.ldr
Model2.ldr&&File1.ldr
Model2.ldr&&File2.ldr

With this approach you can split the files if needed without problem.

You might want to consider offering Philo's subdirectory approach as
an alternative to name mangling.

Model1.ldr
Model1\File1.ldr
Model1\File2.ldr

Model2.ldr
Model2\File1.ldr
Model2\File2.ldr

Will be combined into
Model3.ldr
Model1\File1.ldr
Model1\File2.ldr
Model2\File1.ldr
Model2\File2.ldr

This also works, both inside an mpd and in the filesystem.

Have fun,

Don

Subfoldering is not always a realistic option. Imagine you have 30 minifigs you
wish to individually animate. They all have mfLeftArm.ldr and mfRightArm.ldr as
submodels to mfTorso.ldr, and hands on each arm, and maybe tools in their hands.
If you (for some reason I can't think of right now, but anywho) would wish to
explode that mpd file, it would generate ridicuolsly many subdirectories with
just one or two files in each.

I like the idea of Model1.ldr&&File1.ldr, and I think I can adopt it rather than
create another [re]naming convention. But, just to be on the safe side,  is "&&"
legal in all different file systems? I see it works just fine in WinXP.

/Tore



Message is in Reply To:
  Re: Straightening Up the MPD Format
 
(...) You might want to consider offering Philo's subdirectory approach as an alternative to name mangling. Model1.ldr Model1\File1.ldr Model1\File2.ldr Model2.ldr Model2\File1.ldr Model2\File2.ldr Will be combined into Model3.ldr Model1\File1.ldr (...) (14 years ago, 2-Apr-10, to lugnet.cad)

19 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR