ok so it looks about the same as 12.12, I'll give that a whirl tonight.
What do you think about importing cura into another script so I could slice with it that way? I guess what I'm trying to do is turn cura into a plugin for maya.
ok so it looks about the same as 12.12, I'll give that a whirl tonight.
What do you think about importing cura into another script so I could slice with it that way? I guess what I'm trying to do is turn cura into a plugin for maya.
Importing the whole of Cura into another script? That would be madness ;-) also you won't get the speed improvement that pypy offers.
Well you said it would be madness, but you didn't say it wouldn't be possible. That gives me hope! :grin: I might be able to bring pypy into maya as well. I'll let you know if I can get that far. :smile:
ok, I tried to get the command line to work this time. I did with 12.12 again... sorta with errors.
Here's what I did. I tried exactly what you said Navigated to the software\Cura folder
"C:\Software\Cura\pypy\pypy.exe" -m Cura.cura -p "C:\Queue\Cura.ini" -s "C:\Queue\Pyramid2x10.stl
This is the error I got:
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "C:\Software\Cura\pypy\lib-python\2.7\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Software\Cura\pypy\lib-python\2.7\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Software\Cura\Cura\cura.py", line 80, in <module>
main()
File "C:\Software\Cura\Cura\cura.py", line 58, in main
profile.loadGlobalProfileFromString(options.profile)
File "Cura\util\profile.py", line 247, in loadGlobalProfileFromString
options = zlib.decompress(options)
error: Error -3 while decompressing data: incorrect header check
So I thought ok, maybe I mangeled the INI file so I omitted that part and it worked with 12.12... sorta. So I tried it 13.03
"C:\Software\Cura\pypy\pypy.exe" -m Cura.cura -s "C:\Queue\Pyramid2x10.stl
and got...
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "C:\Software\Cura\pypy\lib-python\2.7\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Software\Cura\pypy\lib-python\2.7\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Software\Cura\Cura\cura.py", line 80, in <module>
main()
File "C:\Software\Cura\Cura\cura.py", line 67, in main
sliceRun.runSlice(args)
AttributeError: 'module' object has no attribute 'runSlice'
I'm going to reinstall cura and try again... I'll be back if anything changes.
Oh, I could have broken something then...
I reinstalled, same problem. It seams weird that my previous install of cura 12.12A that was working, is not now. When I run it without a profile (INI file) it makes it most of the way and crashes on something, I can't remember the exact part of the slicing. I can look that tonight up if it would help.
Works great on 12.11 still, I'll just use that in the mean time I guess. I hope I'm not missing out on any slicing enhancements.
Recommended Posts
Daid 304
You're almost there ;-)
I wouldn't recommend trying to run Cura.slice, which has a different interface and is used internally. And bound to change when I introduce my new engine.
The best way would be:
Link to post
Share on other sites