Jump to content
thopiekar

Blender plugin (official thread)

Recommended Posts

Posted (edited) · Blender plugin (official thread)

Just reserving this thread for questions between plugin users here.

Additionally, feel free to add ideas for improvements, which are important for you as issues to the project page.

Looking forward to stimulating and inspiring ideas!

Thanks!

 

Edited by thopiekar

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Hi Thopiekar.

 

Thanks for all your hard work.

I have a problem with your blender integration plugin.

I have installed the plugin and restarted cura.

 

I have made a simple model in blender 2.8beta

Can the fact that i'm using blender beta have something to do with it? I do have regular blender installed, too.

I'm attaching my .blend file, so you can try it, and see if it's just my file that is bad.

In the zip file are 2 blender files. The "hook" file is the one that fail for me, and the "stopper" does load.

hook_bathroom.zip

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Hello @imonsei,

 

thank you for contacting me here 😃

I looked into your files and when opening "hook_bathroom.blend" I can also find no model inside.

Or am I missing something? 🙄

 

Thanks! 🙂

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

What version are you using?

Now I'm just extra confused.

I just tried just unzipping the hook_bathroom.blend file in a seperate directory, and I can open that one fine by itself in 2.8B.

When I try and open it in blender 2.79 it doesn't load anything.

I think the new blender file format is somewhat different from the old one.

Oh well. I'll wait until blender 2.8 comes out of beta and just use export stl until then.

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

The latest stable version. If I'm not wrong the betas are distributed in zip files, right? How is your beta installed?

Please make sure that all blender files are assigned to the executable within your unpacked files.

The plugin inside Cura looks which file is assigned to .blend files and runs a command using this installation.

 

Please keep me posted about your problem. Would like to understand how it comes 😉

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

oho. That might be an actual problem. When i try and change the file type association (windows 10) on .blend files from the 2.79 executable to the 2.8 one, it seems like the change takes effect, but when I double click a .blend file it still opens in 2.79

Share this post


Link to post
Share on other sites
Posted (edited) · Blender plugin (official thread)

@imonsei Hmm, that sounds strange. Could be the case that you need to use a registry cleanup tool.

When programming the plugin I had to write algorithms to look for installations in at least 3 locations.

With Windows 10 (or slightly earlier) there is even a new place for file assignments (1 of those three mentioned before).

 

So after changing the assignment it works now? Does the model show up?

 

---

Another topic..

 

MACOS USERS: I need testers for my current macOS support. That also includes FreeCAD and OpenSCAD, but would need to prepare the plugin packages first. Therefore doing it by request.

 

https://thopiekar.eu:5443/cura-cad-integration/CuraBlenderPlugin/-/jobs/935/artifacts/browse

 

The principle is the same as on Windows: The plugin within Cura will determine the path of application your file (here .blend) is assigned to. As you can see above it works with my test file, even without 3D acceleration in my virtual machine. By the way, Blender doesn't run within this VM, because of the missing 3D acceleration, but the plugin works, because it is running Blender "headless".

Short instructions for Cura 4.0.0 users: Download the .curapackage file from the link above and drag+drop it into Cura. Finally, restart the application.

In any case, please give feedback otherwise I'm NOT going to publish any of this progress via Cura Marketplace.

 

Thanks!

 

---

 

image.thumb.png.dfdf1ed33e89215ec750d7898445af96.png

 

image.thumb.png.4b06b97e48d54d961f29d4d17488c19b.png

Edited by thopiekar
Another iteration of the plugin, which works on Windows, Linux and macOS.

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Not yet. can't get it to accept my file association change.

I'll keep tinkering and keep you posted.

The issue will resolve itself when blender 2..8 comes out of beta and gets an installer.

  • Like 1

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Hi Thopiekar,
I've also had issues with using Blender 2.80 and your plugin, Cura always gave the "invalid file" error and nothing was loaded.

I decided to investigate the cause of the bug, and found that with Blender 2.80 they've made some changes in the bpy API.

I found a list of key changes here, and also an implementation of a "legacy_mode" switch that checks if you're using v2.80 or earlier and runs the commands accordingly. I'm not that familiar with gitlab (neither it's self-hosted version) but I've pushed a commit to my github that implements these changes. Could you take a look at it and merge if possible? I've tested the changes in both Blender 2.79 and 2.80, though It's kinda my first collaboration like this so please treat accordingly, thanks in advance.

  • Like 1

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Hello @ardrift!

 

Thank you for taking time making the needed changes to the script!

I took a look onto it and it looks good for me! 👍

 

Will include this soon into my code and release a new version.

 

Many thanks (again)!

- Thomas

  • Like 1

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Pretty awesome. I love it when people work together 😄

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

A short follow up: Added the @ardrift 's patch to my code, announced a new version 0.3.2 and submitted the package to Ultimaker.

 

Enjoy your weekend! 🙂 

  • Thanks 1

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

By the way, do you know how we could benefit from multi-material printing using this plugin?

Is there a way using macros to access single bodies? Is there even a way to design things like that in Blender or does a model always consist of one part?

 

I'm planning to add multi-material support to my plugins soon. The SolidWorks plugin is able to do that via 3MF fileformat, but you can also export all bodies separately and merge them to a group of models (what the 3MF reader in Cura does by the way).

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

Quick question. Have you guys manually registered the DLL files in blender, or have blender in your path?

Share this post


Link to post
Share on other sites
Posted · Blender plugin (official thread)

No, you need probably @ardrift 's patches, if you upgraded Blender. Otherwise having Blender assigned to .blend files should be enough. The new plugin version was rejected by Ultimaker. I'll try to find time soon to correct the plugin and reupload it for a review by Ultimaker.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!