LPub: Torsos and Legs


LPub: Torsos and Legs
#1
Is there a way to "group" Torsos (Torso + 2 Arms + 2 Hands) and Legs (Hips and 2 Legs), so LPub counts them as 1 Part (and shows them as that in the part window) instead of 5 or 2 separate parts? I tried the "group" function in MLCad without knowing what it really does but that didn't work in LPub. I don't like using shortcuts, because I want to be able to modify the parts without editing the dat. And I would have to add the modified dat to my model so others can see it.
Reply
Re: LPub: Torsos and Legs
#2
Put the assembly you want into a separate *.ldr or *.date file e.g. in the MODELS or "Unofficial\PARTS" folder,
then use it in your model. I think LPub then should treat that as an unofficial, but standalone part, I hope.
Reply
Re: LPub: Torsos and Legs
#3
It is possible in LPub to replace a group of parts by another assembly in BOM and PLI:
0 !LPUB PLI BEGIN SUB <part> (<color>)
(parts)
0 !LPUB PLI END

For example,
0 LPUB PLI BEGIN SUB turntable.ldr
1 8 0 0 0 1 0 0 0 -1 0 0 0 -1 48452.DAT
1 0 0 0 0 1 0 0 0 -1 0 0 0 -1 48168.DAT
0 LPUB PLI END
puts the image of an assembled turntable instead of two separated halves (turntable.ldr contains the two lines
1 8 0 0 0 1 0 0 0 -1 0 0 0 -1 48452.DAT
1 0 0 0 0 1 0 0 0 -1 0 0 0 -1 48168.DAT)

Or:
0 LPUB PLI BEGIN SUB 76537.dat 14
1 0 100 110 0 1 0 0 0 1 0 0 0 1 4254.dat
1 14 100 0 0 1 0 0 0 1 0 0 0 1 4255.dat
1 494 100 56 0 1 0 0 0 1 0 0 0 1 22977.dat
0 LPUB PLI END
substitutes a shock absorber shortcut to its detailed equivalent in code (that could for example have its spring compressed.
Reply
Re: LPub: Torsos and Legs
#4
ah, cool! something new for me to learn!
Reply
Re: LPub: Torsos and Legs
#5
Philippe \Philo\" Hurbain Wrote:It is possible in LPub to replace a group of parts by another assembly in BOM and PLI:
0 !LPUB PLI BEGIN SUB <part> (<color>)
(parts)
0 !LPUB PLI END

For example,
0 LPUB PLI BEGIN SUB turntable.ldr
1 8 0 0 0 1 0 0 0 -1 0 0 0 -1 48452.DAT
1 0 0 0 0 1 0 0 0 -1 0 0 0 -1 48168.DAT
0 LPUB PLI END
puts the image of an assembled turntable instead of two separated halves (turntable.ldr contains the two lines
1 8 0 0 0 1 0 0 0 -1 0 0 0 -1 48452.DAT
1 0 0 0 0 1 0 0 0 -1 0 0 0 -1 48168.DAT)

Or:
0 LPUB PLI BEGIN SUB 76537.dat 14
1 0 100 110 0 1 0 0 0 1 0 0 0 1 4254.dat
1 14 100 0 0 1 0 0 0 1 0 0 0 1 4255.dat
1 494 100 56 0 1 0 0 0 1 0 0 0 1 22977.dat
0 LPUB PLI END
substitutes a shock absorber shortcut to its detailed equivalent in code (that could for example have its spring compressed.

Has "turntable.ldr" (in my case "hipsnlegs.ldr") to be defined somewhere else in the mpd? Because all that happens when I add the lines

0 LPUB PLI BEGIN SUB hipsnlegs.ldr
1 0 0 32.464 3.307 1 0 0 0 0.96 0.28 0 -0.28 0.96 3815.dat
1 0 0 44 0 1 0 0 0 0 1 0 -1 0 3816.dat
1 0 0 44 0 1 0 0 0 0 1 0 -1 0 3817.dat
0 LPUB PLI END

is that the PLI is gone (See step 1 in the picture)

[Image: 7320199528_ac2d7f4e7d_h.jpg]
Reply
Re: LPub: Torsos and Legs
#6
Mmhhh... not tested in an MPD. I simply put the substitute part for bom in the same folder as main file.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)