mbrush icon indicating copy to clipboard operation
mbrush copied to clipboard

Cannot convert picture with "./mbc-node.js out.png 0.mbp"

Open tommytamsen opened this issue 3 years ago • 2 comments

When I try the nodejs "Headless conversion" with node ./mbc-node.js out.png 0.mbp I get this output: convert out.png to 0.mbp mb init ready mbc conv: [ '120', '130', '40', '-i0', '-o0', '-w0', '-s2' ] mbc:p0 mbc:p1 mbc:p2 mbc:p3 mbc:p4 mbc width: 1118 mbc:done convert done, saving to file...

But PrinCube wont accept the .mbd file and says "Format error" when trying to upload via the Web-interface. Looking at the generated file "0.mbd" in a HEX editor: MBrush,null,null,null...

Files generated and exported from PrinCube start with two HEX bytes followed by the word "files" What have I missed or doing wrong?

And why does the documentation refer to ".mbd" files and the Web-UI uses ".mbp" files?

Attached output file

0.zip

APP Version 4.33 FW Version 4.16/s2

tommytamsen avatar Mar 06 '21 00:03 tommytamsen

0.mbd, 1.mbd, 2.mbd ... files are raw data (short for MBrush Data), should upload to the printer by cgi interface /cgi-bin/upload:
https://github.com/dukelec/mb/blob/master/doc/dev.md

xxx.mbp file are web app project file (short for MBrush Project), should export and import by the web app.

Don't mess them up.

dukelec avatar Mar 06 '21 04:03 dukelec

That didn't cross my mind, fell kinda stupid :) Many thanks for the clarification! Works like a charm now!

tommytamsen avatar Mar 06 '21 22:03 tommytamsen