Using LDCad flexible parts with Studio

RE: Using LDCad flexible parts with Studio
(2019-11-02, 5:54)N. W. Perry Wrote: Forgive me if this has been answered before, but is there something similar you have to do to use the spring parts? When I load a shock absorber into Studio, the spring mesh is not visible.
Well, yes, it's possible, but really convolved. The spring is generated by LDCad as a custom mesh, and there is no LQ version created with repeated LDraw elements. So the idea is to use the fallback code of the spring (used to see the spring outside LDCad) and put it as a custom part in Studio CustomParts\parts folder (Studio is unable to use parts embedded in MPD Sad ). Another drawback is that the spring is "frozen", so you can't adjust length after processing.

Here is the whole process...
- Start with LDCad code with shock absorbers (attachment shock1.mpd)
- Open it with a text editor.
- Search and replace string "springMesh.ldr" with "springMesh.dat" (Studio is unable to use part files with .ldr extensions Angry )
- Cut the section(s) of LDraw code after "0 FILE blahblah_springMesh.dat" and put them in separate file(s) named blahblah_springMesh.dat (attachments shock-06_5L-soft-1_springMesh.dat and shock-09_5L-hard-1_springMesh.dat).
- Place these files in Studio custom parts folder (C:\Users\<your user name>\AppData\Local\\CustomParts\parts)
- Remove the 0 !LDCAD metacommand lines to avoid accidental changes of the code if you reopen file with LDCad
- Open resulting file in Studio (attachment shock2.mpd)

...but for most models I use uncompressed LDraw shortcuts to avoid the hassle!!!

Attached Files Thumbnail(s)

.mpd   shock1.mpd (Size: 1.77 MB / Downloads: 8)
.dat   shock-06_5L-soft-1_springMesh.dat (Size: 476.13 KB / Downloads: 8)
.dat   shock-09_5L-hard-1_springMesh.dat (Size: 1.3 MB / Downloads: 7)
.mpd   shock2.mpd (Size: 1.47 KB / Downloads: 7)
« Next Oldest | Next Newest »

Messages In This Thread
RE: Using LDCad flexible parts with Studio - by Philippe Hurbain - 2019-11-02, 10:52

Forum Jump:

Users browsing this thread: 1 Guest(s)