@m_adam same issue with bz2 and gzip modules
Checkout my python tutorials, plugins, scripts, xpresso presets and more
Posts made by mikeudin
RE: MacOS BigSur on M1 Macbook Air zlib not loading
MacOS BigSur on M1 Macbook Air zlib not loading
While testing my plugins foung that zlib python module not loading on MacOs BigSur 11.1 on R23.110.
On Windows 10 same C4D version it works fine.
>>> import zlib Traceback (most recent call last): File "console", line 1, in <module> ImportError: dlopen(/Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/lib-dynload/zlib.cpython-37-darwin.so, 2): no suitable image found. Did find: /Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/lib-dynload/zlib.cpython-37-darwin.so: mach-o, but wrong architecture /Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/lib-dynload/zlib.cpython-37-darwin.so: mach-o, but wrong architecture >>>
CallCommand Select Connected is not working on R22
Just found that the python API command
c4d.CallCommand(12557) # Select Connected
In Cinema 4D R22-23 in UV Editing Mode is not working as expected. Selects all UV polygons, instead polygons on a same UV island like on previous versions. Any idea how to fix that?
RE: Plugin not loaded in R23 on macOS
if you want to chime in and report your findings... I'm pretty much lost here...
Sure. I'll recieve more info about client system and make some tests with my buddy who have Mac
RE: Send Python Code To C4D from any Texteditor
@mdr74 OK, thank you! Will check it.
RE: GetDescription for Document Modelling Settings
Great! Thank very much @m_adam!
GetDescription for Document Modelling Settings
I need to get c4d.DESC_NAME of choosen modelling settings parameter.
Here is a how it works for C4DAtom:
cube = doc.SearchObject('Cube') description = cube.GetDescription(c4d.DESCFLAGS_DESC_0) # Get the description of the cube object for bc, paramid, groupid in description: # Iterate over the parameters of the description print (bc[c4d.DESC_NAME], bc[c4d.DESC_IDENT],paramid ,groupid)
Also there is a Document Snap settings:
for bc in c4d.modules.snap.GetSnapSettings(doc): print bc
The result is:
(440000121, 1) (440000120, 31.0) (440000138, 0) (431000002, 1.5707963267948966) (431000020, 1) (431000005, 1) (440000131, 2.0) (440000133, 0.08726646259971647) (440000132, 0.05) (440000134, 0.01) (440000115, <c4d.BaseContainer object at 0x00000299A17F5690>) (431000000, <c4d.BaseContainer object at 0x00000299A17F5F90>) (431000001, <c4d.BaseContainer object at 0x00000299A17F5F60>) (440000117, <c4d.BaseContainer object at 0x00000299A17F5750>) (440000129, <c4d.BaseContainer object at 0x00000299A17F5AE0>) (1007, 1) (1008, 1) (1011, 1)
There is a way to recive Description "container" for Modelling Settings?