Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,894
» Latest member: Marcelo Filipe
» Forum threads: 6,502
» Forum posts: 53,770

Full Statistics

Online Users
There are currently 119 online users.
» 1 Member(s) | 112 Guest(s)
Applebot, Baidu, Bing, Facebook, Google, Yandex, Rene Rechthaler

Latest Threads
2026 - New Parts -> Raw M...
Forum: Part Requests
Last Post: Gerald Lasser
Yesterday, 21:23
» Replies: 6
» Views: 4,099
Teenage Mutant Ninja Turt...
Forum: Official Models
Last Post: Chris Böhnke
Yesterday, 5:19
» Replies: 8
» Views: 3,137
LDraw.org 2026-05 Parts U...
Forum: LDraw.org Announcements
Last Post: Orion Pobursky
2026-05-31, 20:11
» Replies: 0
» Views: 185
Most Common Parts - 16 im...
Forum: Part Requests
Last Post: tom alphin
2026-05-30, 15:05
» Replies: 4
» Views: 555
Current LEGO Colour Palet...
Forum: Parts Authoring
Last Post: Chris Böhnke
2026-05-29, 21:24
» Replies: 2
» Views: 392
LDraw.org Official Parts ...
Forum: Parts Tracker Discussion
Last Post: Manfred Schaefer
2026-05-29, 12:14
» Replies: 18
» Views: 1,517
Hello! Parts 30258pb006,...
Forum: Part Requests
Last Post: Matthew
2026-05-27, 23:02
» Replies: 6
» Views: 640
Successor to LL918 using ...
Forum: MOCs (My Own Creations)
Last Post: Willy Tschager
2026-05-27, 13:05
» Replies: 1
» Views: 336
at rt
Forum: MOCs (My Own Creations)
Last Post: Jeff Jones
2026-05-27, 8:47
» Replies: 3
» Views: 431
One week to go.
Forum: Parts Tracker Discussion
Last Post: Magnus Forsberg
2026-05-25, 16:00
» Replies: 0
» Views: 329

 
  Simple LDCad script
Posted by: N. W. Perry - 2022-03-25, 4:27 - Forum: LDraw Editors and Viewers - Replies (10)

So, I wrote my first script for LDCad, hooray! Cool

It is a simple macro to transpose two colors in a selection. You might use it if you have built a huge checkered floor out of tiles and realized you have the pattern backwards!

I'm sure there are ways to improve it, but I'm actually pleased I was able to work it out in one day. Big Grin

Here it is:

Code:
genTools=require('genTools')

function runColorSwap()

  local ses=ldc.session()
  local sel=ses:getSelection()
  local cnt=sel:getRefCount()
 
  if not ses:isLinked() then
    ldc.dialog.runMessage('No active model.')
    return
  end

  if cnt==0 then
    ldc.dialog.runMessage('No selection active.')
    return
  elseif cnt<2 then
    ldc.dialog.runMessage('At least two items must be selected.')
    return
  end

  local colors={}
 
  local function has_value (tab, val)
    for k, v in ipairs(tab) do
        if v == val then
            return true
        end
    end

    return false
  end

  for i=1,cnt do
    local ref=sel:getRef(i)
    local col=ref:getColor()
    if not has_value(colors, col) then
      table.insert(colors, col)
    end
  end

  if #colors==2 then
    for i=1,cnt do
      local ref=sel:getRef(i)
      local col=ref:getColor()
      if col==colors[1] then
        ref:setColor(colors[2])
      elseif col==colors[2] then
        ref:setColor(colors[1])
      end
    end
  else ldc.dialog.runMessage('The selection must contain exactly two colors.')
  end
end
--===================

function register()

  local macro=ldc.macro('Color swap')
  macro:setHint('Transposes two colors in a selection.')
  macro:setEvent('run', 'runColorSwap')
end

register()

Suggestions are welcome!

Print this item

  Lego dinosaur parts
Posted by: Sloan - 2022-03-24, 22:32 - Forum: Part Requests - No Replies

can anyone point me in the direction of any lego dinosaurs? particularly the "Raptor10" Big One that appears in Jurassic Park Velociraptor Chase?

Print this item

  LDraw All-In-One-Installer 2022-02 v1 now available
Posted by: Willy Tschager - 2022-03-24, 20:31 - Forum: LDraw.org Announcements - Replies (1)

An updated version of the LDraw All-In-One-Installer, in short AIOI, containing the LDraw Parts Library update 2022-02 with 366 new files (including 196 new parts and 12 new primitives) has been released.

The AIOI supports Windows XP (Home and Pro), Windows Vista or higher (all versions). There are two installer files available: Use the 64 Bit AIOI to install all the main 64 Bit programs, while the older 32 Bit programs are offered in a separated .exe file. Please note that only the 64 Bit version contains the LDraw Parts Library. If you want to use the 32 Bit programs it is mandatory that the library has been installed previously. The Installer will NOT run on Windows 95, 98, ME, NT Ver 4, 2000, or XP below SP2.

It contains the following changes:

* Update to Parts Library 2022-02
* Update to MLCad.ini 2022-02
* Update to Offline Parts Catalog 2022-02
* Update to LDView 4.4.1

You can download the AIOI from:

LDraw.org >> Help >> Get Started >> Windows >> LDraw All-In-One-Installer

Many thanks to all the programmers who contributed to this release.

Willy Tschager
(LDraw.org Content Manager)

Print this item

  Axle primitives incompatibility with HD primitives
Posted by: Max Murtazin - 2022-03-23, 7:43 - Forum: Official File Specifications/Standards - Replies (12)

Recently I have noticed that some axle primitives are incompatible with HD circular primitives. On almost any model using axle primitives have holes show up in some places. Probably, we can introduce series of HD axle primitives that would match the HD circular primitives?
   

Print this item

  Selecte same height
Posted by: Jaco van der Molen - 2022-03-23, 6:45 - Forum: LDraw Editors and Viewers - Replies (4)

Hi all,

In LDCad it is possible to select a part and then select same part, same part and color, same color, same step...

But now I am looking for a way to select all parts that are at the same height, i.e. y-coordinate.

@Roland: I'd like to suggest that for a next version?

For now: can this be done with a script?

Thanks!

Jaco

Print this item

Thumbs Up Part request: 78c13
Posted by: Thom Kok - 2022-03-20, 20:45 - Forum: Part Requests - Replies (13)

I was not able to find 78c13 on the parts tracker and would like to use it in my Rock Raiders Power Station moc. I would like to request 78c13.

Print this item

  The Lego and Batman Movie minifigs parts
Posted by: Sloan - 2022-03-19, 19:29 - Forum: Part Requests - Replies (13)

hello i am in need of some headgear from the legomovie and lego batman movie.

36853pb01 LEGO Batman Reggae man batsuit cowl.

28149pb01 lego batman movie Dick Grayson hair piece

28149pb02 Lego Batman Movie Robin hair piece

15864c01pb01 Lego movie Lord Buisiness helmet

Print this item

  Animation playback issue
Posted by: N. W. Perry - 2022-03-19, 15:55 - Forum: LDraw Editors and Viewers - Replies (3)

I wanted to report more about the animation playback issue I'm having, as mentioned here.

In the 1.7 alpha, I tried each of the scripted example models and found no issues, except for 8860. When I started the animation for this one, unlike the others, it played the colorfest animation rather than the 8860 demo. I switched to the 8860 animation and started it. The play button highlighted but the animation did not start, and it remained stuck like that for maybe two minutes. Then the program gave up and just want back to a ready state, and the animation never played.

I switched to 1.6d and went through the same process. The first scripted model I tried, 5510, had the same issue, but the hang time was much shorter, just a couple of seconds. Other scripted models worked fine, as did a second attempt at 5510. Then came 8860, and it had the same behavior as it did in 1.7, except for two things. First, it seemed to get through a single frame (the camera view changed and the counter moved to 0.16 seconds), but otherwise froze up like before. I've attached of screenshot of this stage. Second, it didn't default to the colorfest this time, but opened with its own demo script loaded.

I've also attached log files from these two sessions. (I did try again in 1.7 and it was exactly like the first time except without the colorfest. It didn't get through even one frame.)

I'm quite sure I've run this animation perfectly fine in 1.6d before, so I don't think it's a version-specific problem. But it does seem to be related to the 8860 model somehow.



Attached Files Thumbnail(s)
   

.zip   logFile-2022-03-19-11-05-45.txt.zip (Size: 43.08 KB / Downloads: 2)
.zip   logFile-2022-03-19-11-23-26.txt.zip (Size: 181.25 KB / Downloads: 3)
Print this item

  Help me understand
Posted by: Fredrik Hareide - 2022-03-19, 11:43 - Forum: Parts Tracker Discussion - Replies (3)

I am still learning the ways of ldraw and right now I'm trying to understand the last comment on this part. Should all edges and cond lines be in s01? Is that the issue? I didn't find a way to comment on the post. So tried here instead.

https://www.ldraw.org/cgi-bin/ptdetail.c.../48156.dat


Thanks!

Print this item

  LDCad stepping question
Posted by: Roland Dahl - 2022-03-19, 9:19 - Forum: LDraw Editors and Viewers - Replies (3)

Hello gents, long time no see. 

I recently dug out LDCad again to build the 75192 Falcon.

I try to implement the structure and building steps of the building instructions to the LDraw file. For realizing this I have to work with the grouping feature.

For example: I build the landing gear (building step 131 to 149) as a group. So I can add these steps exactly as main steps 131 to 149 to the LDraw file. 

But I would prefer to build the landing gear as a submodel, as it is much, much more comfortable to work with submodels. But using a submodel instead of using a group is destroying the main step numbering, as a submodel starts with sub step 1.

Question: Is it somehow possible to generate a new submodel AND continue the main stepping (here 131 to 149) within this submodel instead if starting with substep 1?

Print this item