MixedMocs

Eurobricks New Members
  • Content Count

    7
  • Joined

  • Last visited

About MixedMocs

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    Ideas
  • Which LEGO set did you recently purchase or build?
    Lego Icons 10311 Orchid

Contact Methods

  • Website URL
    https://www.instagram.com/mixedmocs/

Profile Information

  • Gender
    Not Telling
  • Interests
    MOCs, Transformers, transforming MOCs, Fantasy, Character Design & Worldbuilding

Extra

  • Country
    Germany

Recent Profile Visitors

171 profile views
  1. Are you kidding? I love the plugin! LDD has always been my preferred method for digital lego (Studio has improved, but the way it sorts its parts confuses me, plus it seems to freee up if I ever hit the "stability" tool on accident) and I love using Blender for my renders because of its versatility, so your plugin is pretty much perfect for me! I'll see about the pull request; I've never really interacted with github beyond finding the download button, lol. I've also figured out the metallic colors in the meantime, I'm doing the naive method where I'm basically just checking the color ID against a list of all the metal colors and then changing the material accordingly: Notice how all the former "yellow" pieces are nice and golden now, as intended. I might add in a little more roughness or dial back the metallic value so it looks less like actual metal; the material now was kind of inspired by this post by Cezium on Instagram.
  2. "Fan made" modification to the plugin: I made a little modification to how the plugin creates materials. This allows for adding a glossy effect which closer resembles Lego plastic IRL, in my opinion. I'm appending some before and after shots below (I read the beginner post an understand now that I'm supposed to embed links, lol). Technobabbel as to how it works: I changed the code to use the nodetrees instead of just setting the diffuse material colors. I use the "Principled BDSF" shader and set the roughness to 0.1, which makes the material glossy (without making in mirror-like), even in the cycles renderer (only editing the diffuse material directly will change how it shows up in the viewport/eevee, but not in the final cycles render itself). I keep the same colors you set. Code Modification: material.roughness = 0.1 material.use_nodes = True material.node_tree.nodes["Principled BSDF"].inputs[0].default_value = (self.r, self.g, self.b, self.a) material.node_tree.nodes["Principled BSDF"].inputs[2].default_value = 0.1 Paste this at line 765 of the file importldd.py inside your Blender's scripts directory (the folder C:\Users\[your name]\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons). You can just open the file with Editor; it's what I did. The lines just before where you paste it should read: material = bpy.data.materials.new(matId_or_decId) material.diffuse_color = (self.r, self.g, self.b, self.a) If you do that and indent everything so that it matches the two lines above, it should now work after reloading your scripts. That is, assuming you didn't mess up capitalization (yes, python cares about that) or add any spacebars/tabs anywhere (yes, python cares about that as well). You should now notice that your bricks are a lot more glossy the next time you import anything. Example images: Before: After: Notice how the bricks now catch the light and reflect each other a lot better, whereas they just looked dull before. Further suggestions and notes: This might not work for parts with decorations. I didn't test those because I couldn't get decorated parts to import correctly in the first place, with or without my mod, lol. This also does not change any existing blender saves where you have already imported something; those bricks will stay matte, but anything you import from now on will be glossy. This is mostly a proof of concept; individuals with more energy than me can now come along and add any number of fun properties to the materials (maybe even the "used brick" look with the little nooks and scratches that Studio does, just using a shader / normal map?) You could also now try detecting when a color is supposed to be metallic, and then making it so. I currently don't have any motivation to do that, though. My approach would just be a big if-statement with all the metal colors. I suppose the "right approach" would be to store the ldd name of each color in an excel table, then the settings needed to recreate it in the columns next to the name, and then somehow make python read all that. I don't know how to do that; this was my first dabble with python. Also, technically, some lego bricks will be annoying because they're shiny on some surfaces but rough on others - c.f. part 303921 "roof tile". I think worrying about that is just my perfectionism rearing its ugly head, though. In conclusion: @M2m Feel free to add my modification to your base version of the script, if you so desire. You can credit me just in a comment next to the part I contributed. If you want to discuss any of this further, feel free to dm me. Preferably with an email adress we can use, cause I still have like 4 posts left to go until I can actually dm anybody, lol. So long, and thanks for all the fish!
  3. I'm not seeing any use of stud.io or any animations on the channel you link to? Did you maybe copy the wrong link or is this just spam?
  4. I know I'm probably late, apologies for that. I only joined these forums yesterday! I'll try to help you out if you still have a problem, but I need a bit of info for that: Could you provide the .lxf file (the model your kid made) that isn't working? What about other .lxf files, do those work still? Did you modify your version of LDD at all?
  5. I don't think LDD actually supports changing the controls natively (as in, the controls are probably hard-coded into the .exe, so someone would need to decode that first). Maybe someone who knows more about the technical details can come along, but for now, it's probably easiest to get used to [shift]-[right click]-dragging to move around LDD. You're gonna need the hotkeys anyways, I promise! (w, a and s for rotating parts, d for deleting them). Big fan of your work on Insta, by the way, I love the darker style!
  6. Apparently, the "Pink Bricks Bug" was just an artifact from the fact that i made those files before installing the new bricks - If anyone else is having the same issue: changing anything about your file and then saving it (in your new version) fixed it for me. Apparently the old files have to be "reconciled" with your modified LDD at least once to be translated properly. Weird edge case, but not a problem!
  7. Hello! First of all, THANK YOU FOR MAKING THIS! I've been searching for days for a way to finally render my LDD mocs with the modded parts, and your plugin (mostly) works like an absolute charm for that! Compared to bluerender, which doesn't accept the new lif file that LIFCreator gives me, or importing into Stud.io, which rotates half the pieces wrong, your plugin is definitely the best option for me right now. That being said, I have been getting a few smaller issues with some of my complex models. First of all, it seems that the plugin doesn't like decorated bricks a lot. When I try to import something with a brick that has a print on it, i get the following error: Python: Traceback (most recent call last): File "C:\Users\[my name]\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\importldd.py", line 1454, in execute return convertldd_data(context, self.filepath, self.lddLIFPath, self.useLogoStuds, self.useLDDCamera) File "C:\Users\[my name]\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\importldd.py", line 1394, in convertldd_data converter.Export(filename=filepath, useLogoStuds=useLogoStuds, useLDDCamera=useLDDCamera) File "C:\Users\[my name]\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\importldd.py", line 1144, in Export texImage.image = bpy.data.images.load(os.path.normpath(decofilename)) RuntimeError: Error: Cannot read '\Decorations\101321.png': No such file or directory It will then stop importing, so I'll have only half a model or nothing at all in blender. If I go back into LDD and remove the decoration from the part, the model is imported without issue. Apparently it just can't find the decoration files, I've tried it with both the new and old decorations, same issue. Second of all, on some models, some brick faces will show up pink when imported. I'll attach a screenshot. I have no idea why this happens, but at least it seems to be constistent per brick: the sand-yellow 1x1 bricks in the screenshot all consistently have 3 pink faces (some of them are just rotated apparently). The import doesn't throw any errors for this issue. I'm sorry about the shoddy screenshot compression. I would love to attach more screenshots, but I'm only allowed a max total size of 0.1mb, which isn't enough for much of anything if we're honest (does this get better if I post more? This is my first forum contribution after all). I can also send you some of my "incriminating" model files if you want, just tell me through which channel you'd like to receive them. Be aware that I do use the new modded LDD parts from the key topic on here, though I think I can also find some with just the "vanilla" parts.