[LDCad] open Stud.io-file with correct colors - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: [LDCad] open Stud.io-file with correct colors (/thread-26169.html) |
[LDCad] open Stud.io-file with correct colors - Stefan Frenz - 2022-03-25 I got a stud.io file with all inlined parts, size is about 7 MB. Opening this file in Stud.io is nearly impossible as I'm waiting now for about 45 minutes and still having "parsing a file 0%", while LDCad opens it in a few seconds. Unfortunately, all colors are Stud.io/Bricklink-colors, so they are "MISSING" in LDCad. Is there an easy way in LDCad to activate an import-filter replacing all Stud.io/Bricklink-colors by LDraw-colors on load or is there a small script to replace colors after loading? If so: does such a script exist already? As far as I understand, especially the -1 and -2 colors need special attention as they map to 16/24 in the LDraw universe. Thanks for any hint, I'm willing to implement the converting script if this is the way to go and not done yet. RE: [LDCad] open Stud.io-file with correct colors - N. W. Perry - 2022-03-25 What are these Stud.io/Bricklink link colors, that are different from LDraw ones? I always thought Studio used the same LDconfig for its colors as everyone else… RE: [LDCad] open Stud.io-file with correct colors - Stefan Frenz - 2022-03-25 The color definition of Stud.io seems to be the same (or at least: mostly the same) as Bricklink. The Stud.io color definition file (in the data directory after installation) has a mapping table, ie. it shows both Stud.io/Bricklink and LDraw color ids and names. RE: [LDCad] open Stud.io-file with correct colors - Roland Melkert - 2022-03-25 (2022-03-25, 11:13)Stefan Frenz Wrote: I got a stud.io file with all inlined parts, size is about 7 MB. Opening this file in Stud.io is nearly impossible as I'm waiting now for about 45 minutes and still having "parsing a file 0%", while LDCad opens it in a few seconds. Unfortunately, all colors are Stud.io/Bricklink-colors, so they are "MISSING" in LDCad. Does it include all parts even official ones? If so you might have thought it won't be necessary to install the ldraw library at all. But the library also includes the default color definitions trough LDConfig.ldr You can fix this by installing the complete.zip library or just LDConfig.ldr and configure it manaully in the "prefs/ldraw/configuration files" menu. RE: [LDCad] open Stud.io-file with correct colors - Stefan Frenz - 2022-03-26 Thanks for the hint, but I'm not sure if I understand your suggestion correctly. What I have:
So the suggestion is to replace the LDraw color configuration by the one contained in Stud.io? Uh, this I really wanted to circumvent as I would like to have the Stud.io-file in "normal" (i.e. LDraw/LDConfig style). RE: [LDCad] open Stud.io-file with correct colors - Philippe Hurbain - 2022-03-26 Hi Stefan, The file yo try to open seems to be directly extracted from Studio file. But this one does contain two files, one is a regular LDraw file with normal LDraw colors (model.ldr), the other contains embedded parts and use BL colors (model2.ldr). Why not use the first one? Otherwise it should be possible to write a LDCad script to convert BL colors to Ldraw ones... RE: [LDCad] open Stud.io-file with correct colors - Stefan Frenz - 2022-03-26 Hi Philippe, thanks, but unfortunately there is no model.ldr or model2.ldr in my file. Maybe I got the model2.ldr-extract from the stud.io file. So I will write a LDCad perl script to convert the colors. RE: [LDCad] open Stud.io-file with correct colors - Stefan Frenz - 2022-03-26 ...ended up to write a perl script: Code: #!/usr/bin/perl |