• HideElement in Cinema 4D 2024

    Cinema 4D SDK 2024 python
    4
    2
    0 Votes
    4 Posts
    772 Views
    DunhouD
    Yes @simonator420 , it worked in 2023, and not worked any more in 2024, I also found that strange behavior in HideElement() and confused me for a while.
  • Get value of texture node filepath port?

    Cinema 4D SDK 2024 python
    3
    1
    0 Votes
    3 Posts
    900 Views
    B
    Oh wow! Thank you so much! Yes I'm a beginner with python cinema 4D so I really appreciate your support and this definitly gives me a better understanding of the node structure.
  • 0 Votes
    14 Posts
    3k Views
    M
    Hi thanks a lot for your report, the issue regarding Reloading Python Plugin not working as expected have been fixed in 2024.2. Cheers, Maxime.
  • Create Xpresso Python node

    Cinema 4D SDK python 2024
    3
    0 Votes
    3 Posts
    601 Views
    B
    WOW!!! It turns out that there is a node specifically for python. But in the documentation, in the list GV Node Types, it is not indicated. This fact forced me to look for workarounds. Thanks for the help
  • Failed to Connect to Cinema 4D, with port: 7788

    Cinema 4D SDK python 2023 2024
    3
    0 Votes
    3 Posts
    765 Views
    RenatoTR
    ah! Thanks a lot!
  • How to draw a primitive object in BaseDraw

    Cinema 4D SDK python 2023 2024 s26
    3
    0 Votes
    3 Posts
    637 Views
    gheyretG
    Hi @ferdinand Thank you for your reply and guidance. I'll get around to it. Cheers Gheyret
  • Force polygon object to generate it's cache

    Cinema 4D SDK python 2024
    7
    0 Votes
    7 Posts
    1k Views
    bacaB
    Thanks @ferdinand, Thats gone too far, we can close this subj now. I think I have a solution already. I just wasn't clear enough in the beginning, I just wanted to know if PolygonObject can be forced to produce it's cache object by a command. I made an experiment where I spawn flat geometries between other flat geometries. Like planes in-between of deformed soft body planes. Here's working example: Setup: [image: 1699565133962-417b1a04-77c9-4163-bc6f-36c2800323f5-image.png] And simulation: [image: 1699565001814-cloth_multiply__03_.gif] Once you clone original geometry — it's flat, and there would be intersections and simulation will be broken. So you need to blend newborn geo point positions in-between of existing geometry points. Once you blend it — there are no intersections, it nicely continue with soft body simulation. But softbody dynamics build constraints for every new object. And if geometry first appears as deformed — wrong constraints are initialized, and each new object becomes crumpled real quick. Also there's "Mix Animation" -> "Follow Shape" checkbox, which rebuild constraints (or adjusts them - who knows?) — and it reads original point positions, as I understood. So I had to have both — original geo, and cache. Where cache used to simulate geometry in 3D, and original object (CacheParent?) will be used for constraints.
  • 0 Votes
    4 Posts
    905 Views
    mikeudinM
    @baca Thank you! Works like a charm!
  • VolumeBuilder Cache and AddDependence()

    Cinema 4D SDK 2024 c++
    9
    0 Votes
    9 Posts
    2k Views
    D
    Hi Illia, I haven't been able to properly stress test the new code, but by the first look it seems to be working. Thanks! Dan
  • SendModelingCommand causing Memory Leak

    Cinema 4D SDK 2024 c++
    11
    0 Votes
    11 Posts
    2k Views
    ferdinandF
    Hey @d_schmidt, The project files you sent me clearly had been compiled on MacOS, all the Xcode build fragments are still there and so are the MacOS plugin binaries. [image: 1700144525927-af5816db-1df0-444d-9723-89095081c4ed-image.png] That aside, since you said that you are compiling on PC, I tried there again. I had to provide a missing projectdefintion.txt in your solution and provide the missing frameworks, I chose again the 2024.0.0 frameworks. I also again debugged against 2024.1.0. I also had to fix the main.cpp as waiting for the resources being loaded had been removed on C4DPL_INIT_SYS being emitted. What then had the effect that the resources of the plugin were not being found. Other than that, I still had no memory leaks. If you want any further help, you should try to explain more precisely what you are doing: OS, hardware, with which SDK version are you building, with which Cinema 4D are you debugging, what is your VS/Xcode version, are you compiling for debug or release, any customizations, etc. An ongoing problem is also that I must fix/invent things before I can compile and run your code - which is not ideal in such cases. Cheers, Ferdinand Fixed main.cpp: #include "main.h" // must be included when removing the other includes from the SDK #include "c4d_resource.h" Bool PluginStart() { if (!RegisterOptimizeObject()) return true; return true; } void PluginEnd(){} Bool PluginMessage(Int32 id, void* data) { switch (id) { case C4DPL_INIT_SYS: // The following two lines are required for a plugin to function properly. if (!g_resource.Init()) return false; return true; case C4DMSG_PRIORITY: return true; case C4DPL_EDITIMAGE: return false; } return false; } My VS output console dump. This is from before I fixed your main.cpp, and even there I had no leaks: // Boot Sequence Messages [...] // I instantiated an ooptimizeobject, these errors are caused by the butchered main.cpp, it does not wait for the resources being loaded. Symbol resource error: Couldn't open file. (file:///C:/Program Files/Maxon/2024.1.0/resource/modules/c4d_base/description/ooptimizeobject.h) [iofilehandler_impl.cpp(427)] Cause: Errno #2: No such file or directory [iofilehandler_impl.cpp(427)] Following string resource does not exist:...\2024.1.0\resource\modules\c4d_base\strings_en-US\description\ooptimizeobject.str [...] // Shutdown Sequence Messages 15:01:06 DEBUG: PreviewScheduler: Flush/Clear Context 15:01:06 DEBUG: PreviewScheduler: End 15:01:06 DEBUG: Context: Locked:Highest 15:01:06 DEBUG: Context: Unlocked:Highest 15:01:06 DEBUG: PreviewScheduler: Flush completed The thread 0x4014 has exited with code 0 (0x0). 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\motiontracker\lpsolve55_64.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\d3d10core.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\d3d10.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_substance\libs\win64\substance_d3d10pc_blend.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_substance\libs\win64\substance_d3d11pc_blend.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_substance\libs\win64\substance_sse2_blend.dll' 15:01:07 DEBUG: PostFX: Shut down The thread 0x2d74 has exited with code 0 (0x0). The thread 0x5d98 has exited with code 0 (0x0). The thread 0x3fcc has exited with code 0 (0x0). 15:01:07 DEBUG: Shutdown GPU Devices... The thread 0x4694 has exited with code 0 (0x0). The thread 0x7b4 has exited with code 0 (0x0). The thread 0x1f60 has exited with code 0 (0x0). The thread 0x2f38 has exited with code 0 (0x0). The thread 0x4c9c has exited with code 0 (0x0). The thread 0x40f4 has exited with code 0 (0x0). The thread 0x145c has exited with code 0 (0x0). The thread 0x672c has exited with code 0 (0x0). The thread 0x305c has exited with code 0 (0x0). The thread 0x53d0 has exited with code 0 (0x0). The thread 0x3420 has exited with code 0 (0x0). The thread 0x46c0 has exited with code 0 (0x0). The thread 0x16a8 has exited with code 0 (0x0). The thread 0x4968 has exited with code 0 (0x0). The thread 0x1f7c has exited with code 0 (0x0). The thread 0x4d48 has exited with code 0 (0x0). The thread 0x2eec has exited with code 0 (0x0). The thread 0x4d14 has exited with code 0 (0x0). The thread 0x4808 has exited with code 0 (0x0). The thread 0x34ac has exited with code 0 (0x0). The thread 0x3cb0 has exited with code 0 (0x0). The thread 0x75f0 has exited with code 0 (0x0). The thread 0x331c has exited with code 0 (0x0). The thread 0x2fcc has exited with code 0 (0x0). The thread 0x3130 has exited with code 0 (0x0). The thread 0x6dbc has exited with code 0 (0x0). 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\Redshift\res\libs\win64\nvrtc-builtins64_112.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\Redshift\res\libs\win64\embree4redshift.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\Redshift\res\libs\win64\redshift-core-cpu-vc140.dll' 15:01:07 DEBUG: Devices shut down ok 15:01:07 DEBUG: Shutdown Rendering Sub-Systems... The thread 0x3714 has exited with code 0 (0x0). The thread 0x4174 has exited with code 0 (0x0). The thread 0x4be4 has exited with code 0 (0x0). The thread 0x5974 has exited with code 0 (0x0). The thread 0x398c has exited with code 0 (0x0). The thread 0xa30 has exited with code 0 (0x0). The thread 0x4d40 has exited with code 0 (0x0). The thread 0xc48 has exited with code 0 (0x0). The thread 0x241c has exited with code 0 (0x0). The thread 0x35cc has exited with code 0 (0x0). 15:01:08 DEBUG: Finished Shutting down Rendering Sub-Systems The thread 0x5810 has exited with code 0 (0x0). The thread 0x1e94 has exited with code 0 (0x0). The thread 0x6d20 has exited with code 0 (0x0). The thread 0x5cc4 has exited with code 0 (0x0). The thread 0x70d4 has exited with code 0 (0x0). The thread 0x3d94 has exited with code 0 (0x0). The thread 0x1a50 has exited with code 0 (0x0). The thread 0x8a8 has exited with code 0 (0x0). The thread 0x6d84 has exited with code 0 (0x0). The thread 0x5df4 has exited with code 0 (0x0). The thread 0x1998 has exited with code 0 (0x0). The thread 0x6e8 has exited with code 0 (0x0). The thread 0x3f10 has exited with code 0 (0x0). The thread 0x4e94 has exited with code 0 (0x0). The thread 0x5274 has exited with code 0 (0x0). The thread 0x4438 has exited with code 0 (0x0). The thread 0x6c0c has exited with code 0 (0x0). The thread 0x56e4 has exited with code 0 (0x0). The thread 0x14d8 has exited with code 0 (0x0). The thread 0x4588 has exited with code 0 (0x0). The thread 0x6edc has exited with code 0 (0x0). The thread 0x2fa0 has exited with code 0 (0x0). The thread 0x2a08 has exited with code 0 (0x0). The thread 0x1054 has exited with code 0 (0x0). The thread 0x72e8 has exited with code 0 (0x0). The thread 0xfc4 has exited with code 0 (0x0). The thread 0x7404 has exited with code 0 (0x0). The thread 0x6984 has exited with code 0 (0x0). The thread 0x1e80 has exited with code 0 (0x0). The thread 0x61bc has exited with code 0 (0x0). The thread 0x6164 has exited with code 0 (0x0). The thread 0x504 has exited with code 0 (0x0). The thread 0x6ef8 has exited with code 0 (0x0). The thread 0x569c has exited with code 0 (0x0). 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\dciman32.dll' The thread 0x3924 has exited with code 1 (0x1). The thread 0x5040 has exited with code 0 (0x0). The thread 0x6a8c has exited with code 0 (0x0). The thread 0x2558 has exited with code 0 (0x0). The thread 0x4c30 has exited with code 0 (0x0). The thread 0x65ac has exited with code 0 (0x0). The thread 0x5ae8 has exited with code 0 (0x0). The thread 0x66b8 has exited with code 0 (0x0). The thread 0x673c has exited with code 0 (0x0). The thread 0x4334 has exited with code 0 (0x0). The thread 0xe34 has exited with code 0 (0x0). The thread 0x196c has exited with code 0 (0x0). The thread 0x6124 has exited with code 0 (0x0). The thread 0x509c has exited with code 0 (0x0). The thread 0x50ec has exited with code 0 (0x0). The thread 0x2b28 has exited with code 0 (0x0). The thread 0x3afc has exited with code 0 (0x0). The thread 0x6b04 has exited with code 0 (0x0). The thread 0x742c has exited with code 0 (0x0). The thread 0x42b4 has exited with code 0 (0x0). The thread 0x1868 has exited with code 0 (0x0). The thread 0x50b4 has exited with code 0 (0x0). The thread 0x6680 has exited with code 0 (0x0). The thread 0x5950 has exited with code 0 (0x0). 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvgbdsi.inf_amd64_3658df21346d526f\nvwgf2umx.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvgbdsi.inf_amd64_3658df21346d526f\nvldumdx.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\drawport_directx.module\libs\win64\dxil.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\drawport_directx.module\libs\win64\dxcompiler.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\xpressocore.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\volumes\libs\win64\openvdb.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\volumes.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\uvviewport.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\tool_system_hybrid.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\thinking_particles.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\teamrender.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\sla.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\sky.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\sketch.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\shader.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\sculpt.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\redshift.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\python.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\pbd_simulations.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\motiontracker.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\motioncam.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\mograph.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\mocca.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_usd.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_substance\libs\win64\substance_linker.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_substance.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_skp\libs\win64\SketchUpCommonPreferences.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_skp\libs\win64\SketchUpAPI.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_skp.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_obj.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_goz.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_gltf.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_forger.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_fbx.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_compositing.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_collada15.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_collada14.xdl64' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\wsock32.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_cadexchange\libs\win64\kernel_io.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_cadexchange.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_alembic.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\interop_moves.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\interop_misc.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\interop_forger.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\interop_bpexchange.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\hair.xdl64' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\vcruntime140d.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll' 'Cinema 4D.exe' (Win32): Unloaded 'E:\plugins\2024.0\sdk2\plugins\example.main\example.main.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\dynamics.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\clothilde.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\ca.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_xtensions.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_viewport_render.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_simulation.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\c4d_objects\libs\win64\ChSolver.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\c4d_objects\libs\win64\xremeshlib2.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_objects.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_nodes.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_nodeeditor.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_manager.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_bitmapfilter.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_assetbrowser.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\bugslife_client.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\archigrass.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\analytics.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\advanced_render.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\unittests_common.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\tool_system.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\tool_scene_abstraction.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\svg.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\shadernodes.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\retargetbase.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\render.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\reflection.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\pythonvm.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\presenter_nodes.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\presenter_nodegraph.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\presenter_base.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\post.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\physx.module\libs\win64\PhysX_64.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\physx.module\libs\win64\PhysXCommon_64.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\physx.module\libs\win64\PhysXCooking_64.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\physx.module\libs\win64\PhysXFoundation_64.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\physx.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\parallelprogram.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\opensubdiv.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\nodes_corenodes.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\nodes.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\neutron.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\network.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\modeling_mesh.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\modeling_geometry_abstraction.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\modeling_geom.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\misc.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\math.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\magicbulletlooks.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_usd.module\libs\win64\tbb.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\io_usd.module\libs\win64\usd_ms.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\io_usd.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image_openexr.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image_ocio_gpu.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image_gpu.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image_exif.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\gui_gluon.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\embree_classic.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\embree.module\libs\win64\embree3maxon.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\embree.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\drawport_selector.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\drawport_general.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\drawport_directx.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\drawport.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\denoiser.module\libs\win64\tbb12.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\modules\denoiser.module\libs\win64\OpenImageDenoise.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\denoiser.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\dbgcore.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\crashhandler.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\corenodes.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\command.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_viewport_nodegraph.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\c4d_base.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\asset.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image_ocio.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\msacm32.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\avifil32.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\image.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\comdlg32.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\credui.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\d2d1.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\msimg32.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.1778_none_57fe2016ce1542ec\GdiPlus.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\msvfw32.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\DWrite.dll' 'Cinema 4D.exe' (Win32): Unloaded 'C:\Windows\System32\usp10.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\corelibs\gui.module.xdl64' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\libs\win64\libmmd.dll' 'Cinema 4D.exe' (Win32): Unloaded '...\2024.1.0\resource\libs\win64\svml_dispmd.dll' The thread 0x75f4 has exited with code 0 (0x0). The thread 0x2370 has exited with code 0 (0x0). The thread 0x49b4 has exited with code 0 (0x0). The thread 0x2ba0 has exited with code 0 (0x0). The thread 0x6824 has exited with code 0 (0x0). The thread 0x2330 has exited with code 0 (0x0). The thread 0x3fbc has exited with code 0 (0x0). The thread 0x9c8 has exited with code 0 (0x0). The thread 0x7378 has exited with code 0 (0x0). The thread 0x7740 has exited with code 0 (0x0). The thread 0x5a8c has exited with code 0 (0x0). The thread 0x7334 has exited with code 0 (0x0). The thread 0x54e0 has exited with code 0 (0x0). The thread 0x4a08 has exited with code 0 (0x0). The thread 0x1dd8 has exited with code 0 (0x0). The thread 0x778c has exited with code 0 (0x0). The thread 0x24e8 has exited with code 0 (0x0). The thread 0x1720 has exited with code 0 (0x0). The thread 0x1990 has exited with code 0 (0x0). The thread 0x6d30 has exited with code 0 (0x0). The thread 0x670 has exited with code 0 (0x0). The thread 0x774c has exited with code 0 (0x0). The thread 0x6008 has exited with code 0 (0x0). The thread 0x4094 has exited with code 0 (0x0). The thread 0x60b0 has exited with code 0 (0x0). The thread 0x5124 has exited with code 0 (0x0). The thread 0xae8 has exited with code 0 (0x0). The thread 0x5484 has exited with code 0 (0x0). The thread 0x4ef0 has exited with code 0 (0x0). The thread 0x594c has exited with code 0 (0x0). The thread 0x578c has exited with code 0 (0x0). The thread 0x1fb4 has exited with code 0 (0x0). The thread 0x3058 has exited with code 0 (0x0). The thread 0x3a9c has exited with code 0 (0x0). The thread 0x5ee4 has exited with code 0 (0x0). The thread 0x6c04 has exited with code 0 (0x0). The thread 0x66bc has exited with code 0 (0x0). The thread 0x6234 has exited with code 0 (0x0). The thread 0xf84 has exited with code 0 (0x0). The thread 0x30e4 has exited with code 0 (0x0). The thread 0x766c has exited with code 0 (0x0). The thread 0x484 has exited with code 0 (0x0). The thread 0x38f8 has exited with code 0 (0x0). The thread 0x4068 has exited with code 0 (0x0). The thread 0x3628 has exited with code 0 (0x0). The thread 0x3010 has exited with code 0 (0x0). The thread 0x5eb8 has exited with code 0 (0x0). The thread 0x5df0 has exited with code 0 (0x0). The thread 0x2c44 has exited with code 0 (0x0). The thread 0x39dc has exited with code 0 (0x0). The thread 0x3edc has exited with code 0 (0x0). The thread 0x35f8 has exited with code 0 (0x0). The thread 0x4278 has exited with code 0 (0x0). The thread 0x3bb8 has exited with code 0 (0x0). The thread 0x5018 has exited with code 0 (0x0). The thread 0x1ecc has exited with code 0 (0x0). The thread 0x6450 has exited with code 0 (0x0). The thread 0x6214 has exited with code 0 (0x0). The thread 0x1ea0 has exited with code 0 (0x0). The thread 0x243c has exited with code 0 (0x0). The thread 0x2dd4 has exited with code 0 (0x0). The thread 0x2d68 has exited with code 0 (0x0). The thread 0x6aa4 has exited with code 0 (0x0). The thread 0x49c8 has exited with code 0 (0x0). The thread 0x3e84 has exited with code 0 (0x0). The thread 0x3348 has exited with code 0 (0x0). The thread 0x247c has exited with code 0 (0x0). The thread 0x2430 has exited with code 0 (0x0). The thread 0x2f90 has exited with code 0 (0x0). The thread 0x10c has exited with code 0 (0x0). The thread 0x6d14 has exited with code 0 (0x0). The thread 0x1ee4 has exited with code 0 (0x0). The program '[28656] Cinema 4D.exe' has exited with code 0 (0x0).
  • Icons reuse

    Cinema 4D SDK windows 2024 python
    3
    0 Votes
    3 Posts
    628 Views
    DunhouD
    Hi @ferdinand , Thanks for your explain, I would convert the svg files to png then regist them for a temp solution, and wait the attribute valid in python. Thanks always for your awesome works. Cheers~ DunHou
  • Check the state of record modes with python?

    Cinema 4D SDK 2024 python
    2
    0 Votes
    2 Posts
    478 Views
    B
    ah ok I figured it out. its possible to check those with the c4d.IsCommandChecked() function.
  • Colorchooser in 2024

    Cinema 4D SDK 2024 python
    2
    0 Votes
    2 Posts
    427 Views
    M
    Hi @mikeudin thanks a lot for the report, this is a regression due to a last minute optimization within the internal Python API parsing done for which bring around 20% performance boost of the Python Effector in 2024.0. So any other classic API (c4d module) previously accepting a maxon.Vector or maxon.Color/A as an argument will be impacted (only ColorSwatchGroup.SetColor and ColorSwatchGroup.AddColor are affected by these changes) With that's said I was never a big fan of mixed datatype from classic API and maxon API, so even if this is a regression I think I prefer the new behavior. I will discuss that internally and see what is the outcome. I will keep you posted. Cheers, Maxime.
  • TimeLine Window Custom open

    Cinema 4D SDK 2024 python
    7
    2
    0 Votes
    7 Posts
    1k Views
    chuanzhenC
    @kangddan @Dunhou
  • Spline Round Tool behave issue

    Moved General Talk python 2024
    6
    1
    0 Votes
    6 Posts
    1k Views
    ferdinandF
    Hey @baca, Just as an FYI, this bug has been fixed and it will be included in one of the upcoming releases of Cinema 4D, quite likely the next release. Cheers, Ferdinand
  • 0 Votes
    6 Posts
    1k Views
    bacaB
    @ferdinand said in c4d.MCOMMAND_EXPLODESEGMENTS makes target object dead: Select 0th polygon in a mesh. SMC: MCOMMAND_SELECTCONNECTED SMC: MCOMMAND_SPLIT Delete the selected polygons. When no polygons are left, exit, otherwise goto 1. Oh, great idea. Not that elegant, but seems legit. Thanks again.
  • Legacy Code still a thing?

    Cinema 4D SDK 2024 c++ windows
    11
    0 Votes
    11 Posts
    2k Views
    Y
    Oh sorry, thank you. I totally missed that.
  • 0 Votes
    6 Posts
    948 Views
    DunhouD
    Thanks for that @ferdinand @m_adam , yes, Ferdinand is right, Maxime's point is too "pro" for me, and with some maxon decorators I never used in some way mess me up, with Ferdinand's "rookie" like explain that I can understand this more, thanks for your both respected work. Cheers~ DunHou
  • 0 Votes
    5 Posts
    972 Views
    i_mazlovI
    Hi @LingZA , Sorry for the delayed answer. Could you please explain the result that you're trying to achieve? It looks now that you would like to implement a modeling tool similar to Bevel, when you would like to firstly select points/edges/polys and secondly apply some changes to them. If that's the case, then you need to implement the part of your tool that selects objects. Please have a look at BaseSelect. You can also explore Flatten Polygons example. You can find a sample code snippet below that simply selects all of the edges of the polygon. You need to be in "Edges" mode for that. Additionally you can emulate the polygon highlighting yourself. Regarding the flags: PLUGINFLAG_TOOL_EDITSTATES - designates that the tool supports deformed editing PLUGINFLAG_TOOL_SWITCHACTION - allows to adjust the active tool. This works in tandem with the MSG_TOOL_SWITCHACTION message type. Namely, when the modifier (aka qualifier) key is pressed, the plugin receives this message such that it can react on this key press. PLUGINFLAG_TOOL_NO_TOPOLOGY_EDIT - flag that informs cinema that the tool doesn't perform any topology modifications (i.e. doesn't add/remove/reassign of the polygons) PLUGINFLAG_TOOL_TWEAK - if you click on the element that isn't currently selected, it will select it for you (so your tool can work with this selection), and will deselect it once your tool finishes PLUGINFLAG_TOOL_TWEAK_NO_HIGHLIGHT - same as above but without highlighting the temporarily selected element PLUGINFLAG_TOOL_DRAW_MULTIPLANE - some legacy flag that is (or at least should be) deprecated Cheers, Ilia [image: 1698935992814-cinema_4d_ezzrkgku0y.gif] import c4d PLUGIN_ID = 1234321 # Be sure to use a unique ID obtained from www.plugincafe.com class MyTool(c4d.plugins.ToolData): def __init__(self): self.selectionRadius = 10 self.highlightedPolygon: int = -1 def GetState(self, doc): if doc.GetMode() != c4d.Medges: return False return c4d.CMD_ENABLED def MouseInput(self, doc, data, bd, win, msg): # Only handle left click if msg[c4d.BFM_INPUT_CHANNEL] != c4d.BFM_INPUT_MOUSELEFT: return True # Get active object op = doc.GetActiveObject() if not op: return True if self.highlightedPolygon < 0: return True # Initialize helping Neighbor struct nbr = c4d.utils.Neighbor() nbr.Init(op) polyInfo = nbr.GetPolyInfo(self.highlightedPolygon) # get polygon information bs = c4d.BaseSelect() opPolygon: c4d.CPolygon = op.GetPolygon(self.highlightedPolygon) # Iterate over sides for side in range(4): # Skip last edge if polygon is a triangle if side == 2 and opPolygon.c == opPolygon.d: continue # Select edge edgeIdx = polyInfo['edge'][side] bs.Select(edgeIdx) # Apply selection op.SetSelectedEdges(nbr, bs, c4d.EDGESELECTIONTYPE_SELECTION) c4d.EventAdd() return True def Draw(self, doc, data, bd, bh, bt, flags): selectionColor = c4d.GetViewColor(c4d.VIEWCOLOR_SELECTION_PREVIEW) if flags & c4d.TOOLDRAWFLAGS_HIGHLIGHT: # if the DrawPass is the Highlight one if self.highlightedPolygon >= 0: # Get active object op = doc.GetActiveObject() if not op: return True bd.SetMatrix_Matrix(op, op.GetMg()) # draw in global coordinates # Get points and polygon from the object opPoints: list[c4d.Vector] = op.GetAllPoints() opPolygon: c4d.CPolygon = op.GetPolygon(self.highlightedPolygon) points = [opPoints[idx] for idx in (opPolygon.a, opPolygon.b, opPolygon.c, opPolygon.d)] colors = [selectionColor for _ in points] if len(points) == 3 or len(points) == 4: bd.DrawPolygon(points, colors) # draw the polygon highlight # Draw the outline bd.SetPen(c4d.Vector(0, 1, 0)) for point1Idx in range(-1, len(points) - 1): point1, point2 = points[point1Idx], points[point1Idx + 1] bd.DrawLine(point1, point2, c4d.NOCLIP_D) return c4d.TOOLDRAW_HIGHLIGHTS def GetCursorInfo(self, doc, data, bd, x, y, bc): self.highlightedPolygon = -1 # If the cursor has left a user area, simply return True if bc.GetId() == c4d.BFM_CURSORINFO_REMOVE or doc.GetMode() != c4d.Medges: return True # Get active object op = doc.GetActiveObject() if not op: return True # Calculates the width and height of the screen bd: c4d.BaseDraw = doc.GetActiveBaseDraw() frame = bd.GetFrame() l, r, t, b = frame["cl"], frame["cr"], frame["ct"], frame["cb"] width, height = r - l + 1, b - t + 1 # Initialize viewport select vpSelect = c4d.utils.ViewportSelect() vpSelect.Init(width, height, bd, [op], c4d.Medges, True, c4d.VIEWPORTSELECTFLAGS_IGNORE_HIDDEN_SEL) c4d.SpecialEventAdd(c4d.EVMSG_UPDATEHIGHLIGHT) # pushing highlighting event to cinema # Looking for the nearest polygon and saving it's index in self.highlightedPolygon polyInfo = vpSelect.GetNearestPolygon(op, int(x), int(y), self.selectionRadius) if not polyInfo or 'i' not in polyInfo: return True polygonIdx = polyInfo['i'] if (polygonIdx < 0 or polygonIdx >= op.GetPolygonCount()): return True self.highlightedPolygon = polygonIdx return True if __name__ == "__main__": c4d.plugins.RegisterToolPlugin(id=PLUGIN_ID, str="MyTool", info=0, icon=None, help="", dat=MyTool())
  • OBJ Import setting not changing

    Cinema 4D SDK python 2024 windows
    5
    0 Votes
    5 Posts
    921 Views
    ferdinandF
    Hey @del, Thank you for pointing out that this part of our examples, I overlooked this aspect this morning. I have fixed the issue in our local repository for import_obj_r13.py. The updated line is: objImport[c4d.OBJIMPORTOPTIONS_PHONG_ANGLE_DEFAULT] = c4d.utils.DegToRad(22.5) and it will go live with the next docs update. I cannot update the legacy version of the SDK in import_OBJ.py as I lack the permissions to write there even in our local repository. Cheers, Ferdinand