Everything related to SDK.
By d76
#382192
Hello, it me again,
I got segmentation fault with this.. am i doing something wrong?
(python 3.2, Mac OS X 10.9)
Thanks
Code: Select all
#!/Library/Frameworks/Python.framework/Versions/3.2/bin/python3
# -*- coding: utf-8 -*-

import os
from pymaxwell import *

f = "particles-00000.bin"
n = os.path.splitext(f)[0]

s = Cmaxwell(mwcallback)

m = CextensionManager.instance()
m.loadAllExtensions()
e = m.createDefaultGeometryProceduralExtension('MaxwellParticles')
p = e.getExtensionData()
p.setString('FileName', os.path.realpath(f))

# and now.. it's.. Segmentation fault
o = s.createGeometryProceduralObject(n, p)

s.writeMXS("{}.mxs".format(n))
User avatar
By Brany
#382199
It seems to work fine in Windows (python 2.6, 2.7 and 3.2). I will try it in OSX
By d76
#382220
hi Brany
have you tried it? i also forgot to mention that i am using pymaxwell from 3.1

and one side note, i read somewhere in docs which gave me impression that inside bin, particles can have radius specified per particle, is that possible? i have read anything inside specs (realflow 2013), have something changed or i just didn't understand it well
thanks
User avatar
By Brany
#382221
We don't distribute pymaxwell for python 3.1 now, what version of the libraries (Cmaxwell.getEngineVersion()) do yo use?
User avatar
By Brany
#382225
OK, pymaxwell 3.0.1 for python 3.2 then ;)

I've just installed python 3.2 in my osx 10.9 machine and it causes a segmentation fault just running this code
Code: Select all
import sys
print sys.path
from the command line. pymaxwell not installed yet.

The python 3.2 installer is for osx 10.5 so I suspect that I will have to compile python 3.2 using the sources to try to have an stable python 3.2 on my machine.

I'll try to do this tomorrow. Meanwhile I encourage you to try python 2.6 or 2.7 if you can.
By d76
#382226
um, it's part of our studio internal tools i wrote, currently updating to maxwell 3, and it's all python 3.. i think it is impossible for me to use python 2.x, i even started learning python from version 3, and since blender is important part of it (also python 3) i am seriously screwed..

wouldn't it be possible to provide python 3.4 pymaxwell? pretty please?
it will also save me from pickling data and running python 3.2 from python 3.4 each time i need to write a scene, get rid of a bit of "punks not dead" style.. :(

meanwhile i try also work machine, that's still OSX 10.8

also found this: http://stackoverflow.com/questions/1956 ... -mavericks

...and 3 Days later, 82.528 Views !!! ...NL, every[…]

Hello dear customers, We have just released a new[…]

grass generator extension

Just downloaded MWR5 for Rhino 6 and want to use g[…]

Hello everyone, I have a new bug with the latest M[…]