Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. RenatoT
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 35
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by RenatoT

    • RE: Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      @maxime I have also noticed that on the 2024 version, in case of an error in the .res file, classic syntax errors, no dialog is opened to warn of the error and indicate the line in the res file where the problem is. On the 2024 version, it simply does not load the GUI and does not report anything.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      @baca So I'm not alone. Many thanks for your suggestion 🙂

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      @m_adam said in Problems with Reloading Python Plugins in Cinema 4D 2024.1.0:

      Hi just to let you know I was able to reproduce the issue, it seems that only some part are loaded and not everything e.g. in an ObjectData, the GetVirtualObject method is not correctly reloaded. I'm investigating the issue and hopefully will be able to fix it soon, but I doubt there will be any workaround possible for the 2024.0 and 2024.1 release.

      Thank you Maxime, I hope that the issue will be resolved as soon as possible because I am unable to use the 2023 version due to compatibility problems with the Nvidia drivers.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      Yes, my plugin loads and runs correctly on both 2023 and 2024. It registers and works. The difference is that 'Reload Python Plugins' after source code modifications works on 2023, but not on 2024. I have developed about ten plugins on the previous versions... but on 2024 the code is not updated even though in the Python console the plugin writes the message of successful loading. Simply, the code remains the same as before. On the older versions of Cinema, I have never encountered this problem. If it works correctly for you, then the problem is in my installation.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      Hi Maxime, all my plugins that I was editing on the 2023 version (which I can no longer use because it crashes with my RTX 4080 OGL drivers) are not being loaded anymore on the 2024 version after modification, and I have to close and reopen Cinema. I don't have duplicate sources or anything else. It simply doesn't reload them as the old versions used to do.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

      Hello everyone,

      I have read the documentation for Cinema 4D version 2024.0.1, which states that a 'stability issue with reloading Python plugins' has been fixed. However, in the latest version, this functionality does not seem to be working as expected.

      I am encountering persistent problems in reloading Python plugins without having to restart the entire application each time. This is significantly impacting my workflow. I am wondering if anyone else in the community is facing similar issues, or if I might be missing some crucial step in the plugin reloading process.

      Any insights or shared experiences would be greatly appreciated. Thank you in advance for your support and responses.

      posted in Cinema 4D SDK 2024 python
      RenatoTR
      RenatoT
    • RE: Failed to Connect to Cinema 4D, with port: 7788

      ah! Thanks a lot!

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • Failed to Connect to Cinema 4D, with port: 7788

      Hello everyone,

      I've encountered an issue while using Visual Studio Code with Cinema 4D 2023 or 2024. When I click on the 'C4D X' extension in the bottom left corner of VSCode, I receive the following error: 'Failed to Connect to Cinema 4D, with port: 7788.' It appears that there is little to no information available online regarding this problem.

      My primary goal is to debug Python plugins within VSCode. If anyone has encountered and successfully resolved this issue or can provide guidance, I would greatly appreciate your assistance.

      Thank you in advance for your help!

      posted in Cinema 4D SDK python 2023 2024
      RenatoTR
      RenatoT
    • RE: MoData Rotations

      Thanks Ferdinand... i'll manage them myself.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: MoData Rotations

      I mean Hpb Vector Array 🙂

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • MoData Rotations

      Hi all,
      retrieving the rotation from a Matrix limit the angles from -PI to PI so I tought that there is an Array of Vector in MoData... without luck. Maybe i'm working in ModifyPoints and is not the correct way to manage the clones rotations with angles.
      Any suggestion?

      Thanks in advance
      Renato

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Set Xray in GetVirtualObjects()

      Thanks R, the insert was an error, i already corrected. OBJECT_USECACHECOLOR work as expected 🙂

      Cheers
      Renato

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Set Xray in GetVirtualObjects()

      Ok, I miss to use OBJECT_USECACHECOLOR. I found it on this older post:
      https://developers.maxon.net/forum/topic/6674/7275_setting-xray-for-virtual-objects/8

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Set Xray in GetVirtualObjects()

      Thanks Cairyn for the test.

      Yes, is a right question 🙂 ... let me check.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • Set Xray in GetVirtualObjects()

      Hi all, i'm trying to generate an XRAY pyramid inside the GetVirtualObjects() without luck.
      Here my source code:

      		BaseObject* pyramid = BaseObject::Alloc(Ocone);
      		if (pyramid) {
      			BaseContainer* cone_bc = pyramid->GetDataInstance();
      			const Float pyra_height = 0.75;
      			const Vector v1 = Vector(0.0, 1.0, 0.0);
      			const Vector v2 = Vector(1.0, 0.0, 0.0);
      			const Vector v3 = Vector(0.0, 0.0, 1.0);
      			const Vector center = bot_pos + Vector(0.0, pyra_height, 0.0);
      
      			const Matrix mg = Matrix(center, v2, v1, v3);
      			pyramid->SetMg(mg);
      
      			cone_bc->SetFloat(PRIM_CONE_TRAD, mid_lower * supp_scale);
      			cone_bc->SetFloat(PRIM_CONE_BRAD, mid_lower * 2.0 * supp_scale);
      			cone_bc->SetFloat(PRIM_CONE_HEIGHT, pyra_height);
      			cone_bc->SetFloat(PRIM_CONE_HSUB, 1);
      			cone_bc->SetFloat(PRIM_CONE_SEG, subdivision);
      
      			cone_bc->SetBool(PRIM_CONE_CAPS, true);
      			cone_bc->SetInt32(PRIM_CONE_CSUB, 1);
      			cone_bc->SetInt32(PRIM_CONE_FSUB, fstep);
      
      			// Try to set Xray ---------------------------
      			ObjectColorProperties prop;
      			pyramid->GetColorProperties(&prop);
      			prop.xray = true;
      			pyramid->SetColorProperties(&prop);
      			pyramid->SetParameter(ID_BASEOBJECT_XRAY, GeData(TRUE), DESCFLAGS_SET_0);
      			pyramid->Message(MSG_UPDATE); 
      
      			// Try also with Container -------------------
      			cone_bc->SetBool(ID_BASEOBJECT_XRAY, true);
      			
      			doc->InsertObject(pyramid, ret, nullptr);
      		}
      

      Thanks in advance
      Renato T.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Custom mouse icon, define touch point.

      Anyway, i'll add my custom offset to the mouse coordinate to match the point from the center, as seem by default.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: Custom mouse icon, define touch point.

      Hi Maxime,
      thanks for reply. I'm in a ToolData plugin. The viewport is where I would like use a custom mouse cursor.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: SnapCore and Intersect

      Hi Maxime. Thanks for reply. At last I used the BVHTree for that.

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • Custom mouse icon, define touch point.

      Hi all,

      how can I set the coordinate of touch point of my custom icon?
      I registered 2 png icons and it work as expected with GetCursorInfo.. but the touch point of my custom mouse cursor are in the center of bitmap. I would like to set it precise or my arrow don't work.

      Thanks in advance
      Renato

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT
    • RE: SnapCore and Intersect

      Seem that the normal is returned by SnapCore::Snap in SnapResult::mat.v2. I'm verifying

      posted in Cinema 4D SDK
      RenatoTR
      RenatoT