Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Maxon Developers Forum
    2. Tags
    3. s26
    Log in to post

    • All categories
    • gheyretG

      Which DisplayFilter affects ToolData.draw

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK 2023 2024 s26 python
      3
      0 Votes
      3 Posts
      682 Views
      gheyretG
      Hi @ferdinand , I'm sorry that my title and description may be a little confused, maybe I misunderstood something and thought a little complicated. And thank you very much for your answer, you always help me when my thinking is confused. Cheers! Gheyret
    • P

      How to change the color of shaded wire in C++

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 c++
      3
      1
      0 Votes
      3 Posts
      768 Views
      P
      @i_mazlov Thank you for your reply
    • H

      How to evenly distribute objects of different 'width'

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python s26 windows
      6
      1
      0 Votes
      6 Posts
      3k Views
      i_mazlovI
      Hi @gsmetzer, please have a look at the related thread (How to get the bounding box for the whole scene) where your issue was explained in details by @ferdinand @ferdinand said in How to get the bounding box for the whole scene: a BaseObject will also not include its descendants in its bounding box computation So, one must carry out such computations oneself Cheers, Ilia
    • gheyretG

      How to draw a primitive object in BaseDraw

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2023 2024 s26
      3
      0 Votes
      3 Posts
      779 Views
      gheyretG
      Hi @ferdinand Thank you for your reply and guidance. I'll get around to it. Cheers Gheyret
    • S

      Why won't my python generator update? R2024

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python s26 windows
      5
      0 Votes
      5 Posts
      1k Views
      S
      @baca @ferdinand Thank you both. It was the fact that the user data was not collected in the main function. Silly I didn't catch that. It's working fine now.
    • S

      Can I make a hierarchy of nulls inside a Python Generator behave like on in OM?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 python
      3
      0 Votes
      3 Posts
      771 Views
      S
      @i_mazlov sorry I thought I deleted this post as I solved the issue. Anyway to anyone who stumbles upon this question here's how I solved it: for i,pt in enumerate(points_list[::-1]): off = c4d.Vector(distance * i,0,0 ) mg = pt.GetMg() mg.off = off print(rotation.x) rm = c4d.utils.HPBToMatrix(rotation) pt.SetMg(mg * rm) So basically if the objects are inserted in the hierarchy and you start from the last one with the transformations this will work just like in the OM.
    • H

      Why do I have to hit Undo twice after performing SendModelingCommand 'Weld'?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows s26 python
      3
      0 Votes
      3 Posts
      832 Views
      H
      Hi @ferdinand, ah okay I see. Some part of me already suspected it could be a bug. Thanks for taking the time to look into it. Regarding the scope of question. You are absolutely right. And while I understand that it can make answering branching questions hard, it is sometimes not that easy to split things up. But all good, no offense taken. One last thing, I know you guys are not here to develop solutions or come up with algorithms. Still, I was wondering if a possible solution could be to move the selected points to a custom vector position and afterwards simply send an "Optimize" modeling command? Cheers, Sebastian
    • G

      How to weld two points to the last selected point?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows s26 2023 python
      5
      0 Votes
      5 Posts
      1k Views
      i_mazlovI
      Yes, you found the thread about point selection just right!
    • G

      GetActiveToolData() doesn't work for Mirror Tool

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows s26 python 2023
      5
      0 Votes
      5 Posts
      1k Views
      G
      I want to mirror a polygon selection along specified modeling axis, but i'm kinda stuck since i can't apply the dedicated Mirror Tool, the basic Scale Tool also doesn't allow to set the tool settings...
    • G

      How to Apply a modeling command?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 windows python
      3
      0 Votes
      3 Posts
      657 Views
      G
      Thanks man, i'll take a look at it!
    • G

      How to create a radial (pie) menu?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows s26 python
      6
      0 Votes
      6 Posts
      2k Views
      G
      Thanks for your detailed answers, i hoped there is a simpler way to do it)... Pie menus is a very common thing nowadays, why maxon developers haven't implemented it already? In modo for example you can create pie menus, popups...etc without any coding. Not every user is ready/have the time/etc to learn python to build a simple popup, but almost every user needs to customize their working software. I really hope you'll implement these features soon.
    • B

      [PYTHON] How to properly set the toggle of viewport solo

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024 2023 s26
      3
      0 Votes
      3 Posts
      808 Views
      B
      In the past I have refrained from CallCommands and CallButtons because they used to add to the undo queue or did. But I suppose in this instance I can just do it for thise purpose.
    • P

      How to obtain the selection order of objects in C++

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 c++ macos windows
      4
      1
      0 Votes
      4 Posts
      912 Views
      P
      @spedler Thank you for your help
    • H

      Why doesn't c4d.Vector.GetAngle throw an error for the null vector?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python s26
      2
      0 Votes
      2 Posts
      619 Views
      ferdinandF
      Hello Herr May, Thank you for reaching out to us. I am not quite sure why you think it should do that. The angle between two vectors u and v is defined as: theta(u, v) = arccosine(~u * ~v) I.e., the arccosine of the dot product of the two normalized vectors. This is due to the so called circle functions, specifically this identity: [image: 1697012566409-26ea0c5e-9de3-4885-bc15-34b4ee3342da-image.png] Under the hood, GetAngle does exactly what I declared above (just in a bit more efficient manner, as calculating the normalized vector is much more expensive than this little trick): [image: 1697012429446-123bbf8a-568b-49a5-9ff3-2bac41f61339-image.png] As you can see, the correct solution to the arccosine of the dot product of the null vector with itself is 0.5 π, i.e., the value you got : [image: 1697012846516-ebfd4607-e872-42ef-898c-d3a2de4d8dd8-image.png] You could now argue if that is a sensible result for a method that is called 'GetAngle' and if it should throw an error on getting an input vector or being called on a vector with the length zero. But you have also to keep in mind that the C++ backend is used by people who will know the identity pi_half = arccosine(~(0, 0, 0) * ~(0, 0, 0)) and might want to make use of it. Cheers, Ferdinand
    • G

      Command Make Editable confusion

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 windows python
      4
      0 Votes
      4 Posts
      898 Views
      G
      Got it! Thanks.
    • P

      How to Obtain the .FBX Points of Objects in C++

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK s26 c++ macos windows
      3
      4
      0 Votes
      3 Posts
      697 Views
      P
      @ferdinand Thank you for your reply
    • G

      Howto add headers & dividers for a ShowPopupDialog?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows s26 python
      13
      0 Votes
      13 Posts
      3k Views
      G
      It works as expected in C4D 2024, but not in the previous versions.
    • G

      Lasso Selection Tool MDATA_SELECTION_VISIBLE Setting Doesn't Work

      Watching Ignoring Scheduled Pinned Locked Moved Bugs python s26 windows
      2
      0 Votes
      2 Posts
      801 Views
      i_mazlovI
      Hi @Gaal-Dornik , Thanks for reaching out to us. Please excuse the delay. This issue is now tracked via internal bug tracking system. Thread is tagged to_fix, so that the thread can be tracked more closely. Cheers, Ilia
    • gheyretG

      Is that posible to create a dialog like this with python ?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python windows s26 2023 2024
      5
      1
      0 Votes
      5 Posts
      949 Views
      gheyretG
      @ferdinand Indeed, the allure of good looks can be captivating at times. In fact, my primary objective was to explore the development of a pie toolbar, which may seem unconventional but has always held a deep fascination for me. I sincerely appreciate your valuable advice and will certainly give it a try. Cheers, Gheyret
    • G

      ModuleNotFoundError, but the file is in the same folder

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows python s26
      3
      0 Votes
      3 Posts
      691 Views
      G
      I see, thanks. But honestly i don't get it why the plugins folder isn't in the search path...