LDraw.org Discussion Forums

Full Version: LDCad 1.6c (win+linux)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I decided to release LDCad 1.6c early  Big Grin

I was planning on some more scripting examples and maybe a new animation but unfortunately I can't seem to find the time needed at the moment.

Also the 1.6c version has been long overdue

This version includes mostly (minor) bug fixes and some tweaks to existing behavior.

It also includes some new stuff, namely:
  • File cleanup templates
  • Part bin export
  • Scripting api extensions (I also decided to open up the lua 'io' module.
  • Some new scripted macros including some MLCad 'HIDE' tools.
  • New, 1802, templates, also tweaks some existing ones to be more consistent with their static counter parts.
  • Snap and mirror info for, most of, the 1802 library.
For the full list of changes see the changeLog.txt file.

I was also planning on overhauling the part bin structure, but decided to leave that for 2.0 instead.


You can download the newest version here:
http://www.melkert.net/LDCad/download
(2019-06-26, 20:17)Roland Melkert Wrote: [ -> ]I decided to release LDCad 1.6c early  Big Grin
Yeah !!!

Quote:
  • Part bin export
What's the intended purpose?
(2019-06-26, 20:17)Roland Melkert Wrote: [ -> ]I was also planning on overhauling the part bin structure, but decided to leave that for 2.0 instead.

Hi Roland,

Thanks for this update. I got 1.6c running smoothly.

I did some re-work on the part bins for my self in 1.6b and got most things like I wanted it there.
However, I cannot seem to repeat this entirely in 1.6c.

For example: I'd like the Plate 1x1 with sockets, joints and balls in a modified plate category I created, so that the normal plates category is not too crowded.
[Image: 6043639] [Image: 6039482] [Image: 6043656] [Image: 6039479] [Image: 6123814]
I wanted these to be excluded from the hinges bin.
The strange thing is that I only am able to include the last two in my bin.
The other 3 with sockets and socket and ball are no where to be found.

Any idea how to do that?
(2019-06-27, 5:53)Philippe Hurbain Wrote: [ -> ]What's the intended purpose?
People asked for a way to export part lists.
(2019-06-27, 9:58)Jaco van der Molen Wrote: [ -> ]The other 3 with sockets and socket and ball are no where to be found.
Those are in the hinge plate group. I thought I moved all the ball plates there too, but this seems to have fallen trough the cracks.

But if you defined a custom group it doesn't really matter if they are visible somewhere else too, group content doesn't need to be unique.
(2019-06-27, 19:19)Roland Melkert Wrote: [ -> ]Those are in the hinge plate group. I thought I moved all the ball plates there too, but this seems to have fallen trough the cracks.

That is the problem: they are not there, due to my own tweaking... :-(

(2019-06-27, 19:19)Roland Melkert Wrote: [ -> ]But if you defined a custom group it doesn't really matter if they are visible somewhere else too, group content doesn't need to be unique.

The thing is, I cannot seem to get them in any group.

I think I messed up my PBG files too much and I must restore them somehow.
Can I just delete the partBin folder to regenerate it?
(2019-06-27, 19:19)Roland Melkert Wrote: [ -> ]Those are in the hinge plate group. I thought I moved all the ball plates there too, but this seems to have fallen trough the cracks.

I think I now see and understand why: 14418 has 0 !CATEGORY Hinge in it. Just like 14419 and 14704.
Whereas 14417 and 22890 do not have this category meta.

Do we think the category hinge needs to be added to 14417 and 22890?
(2019-06-28, 7:41)Jaco van der Molen Wrote: [ -> ]I think I now see and understand why: 14418 has 0 !CATEGORY Hinge in it. Just like 14419 and 14704.
Whereas 14417 and 22890 do not have this category meta.

You can force them into any group using

Code:
static partName 14418.dat,14419.dat,14704.dat

at the beginning of the rules.
(2019-06-26, 20:17)Roland Melkert Wrote: [ -> ]I decided to release LDCad 1.6c early  Big Grin

I was planning on some more scripting examples and maybe a new animation but unfortunately I can't seem to find the time needed at the moment.

Also the 1.6c version has been long overdue

I have this and it works great, and i like your videos on youtube.
Just a few suggestions
Foremost i can't find a discussion board on the forum dedicated to scripting. I only recently tried reading up on LUA and it still mystifies me how it works. Your videos are good as i said, but its hard to see clearly what you are editing and how.

P.S. i want to make a script for moving the camera through a model as if giving a walking tour of the interior (of a castle)
(2019-12-04, 21:18)Moreau Wrote: [ -> ]Foremost i can't find a discussion board on the forum dedicated to scripting. I only recently tried reading up on LUA and it still mystifies me how it works. Your videos are good as i said, but its hard to see clearly what you are editing and how.
I always capture in HD, but sometimes youtube messes with the resolution especially in the first minute of playback.

Manually forcing the playback quality to HD might help.


(2019-12-04, 21:18)Moreau Wrote: [ -> ]P.S. i want to make a script for moving the camera through a model as if giving a walking tour of the interior (of a castle)
This is an ambitious project if you not familiar with general scripting and or lua.

But it should be very fun to watch, This is how I would approach it:

- Make a copy of the model (backup)
- Make sure the minifig is in a submodel
- Find a unique small piece in the bin that is not used in the model (e.g. a 1x1 plate with some weird pattern).
- Place the helper part at locations you want the minifig to walk to, like a trail of breadcrumbs to follow.
- Create a new story animation for the model using the template button on the main models header dialog' scripting page.

After this you could write a script that moves the minifig from helper part to helper part and at the same time sync the position of a first person camera to the minifig's face location.
As you only need the position of the helper parts you can hide them in the animation script.

If it is indoors you might also want to move a light source along or the povray export will be very dark.

I'll see if I can setup something basic you could use as a starting script as I realize this uses things not really used in the examples (camera/light).
Pages: 1 2