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. ops
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 9
    • Best 2
    • Controversial 0
    • Groups 0

    ops

    @ops

    2
    Reputation
    5
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ops Unfollow Follow

    Best posts made by ops

    • RE: C4DAtom.SetParameter/GetParameter help

      Ah, I found out that using the brackets to set/get the parameter values is much simpler!
      For example: inheritanceEffector[c4d.MGINHERITANCEEFFECTOR_STRENGTH] = 1.0

      posted in Cinema 4D SDK
      O
      ops
    • RE: How to scale(/rotate/move) a parent object without affecting its children?

      And that's good to know about using GetMl() over Get Mg(), mainly for the performance reasons if I understood correctly.

      posted in Cinema 4D SDK
      O
      ops

    Latest posts made by ops

    • RE: How to scale(/rotate/move) a parent object without affecting its children?

      And that's good to know about using GetMl() over Get Mg(), mainly for the performance reasons if I understood correctly.

      posted in Cinema 4D SDK
      O
      ops
    • Dissipating fog volume

      Hello,
      I'd like to achieve a dissipating fog volume over time. I have a volume builder object parenting a simple sphere. I have tried applying the 'Display' Tag and setting the 'Visibility' to 0% on both the volume builder and the source sphere, but neither seems to make the fog volume disappear. The only way I could achieve the effect was to use the Fog Range Map Filter on the volume builder object and set the 'Min Output' and 'Max Output' to 0.0.

      Now with the python script, I don't know how I can access this range map filter object programmatically. I get the volume builder object through the doc.SearchObject().
      Any tips on how to obtain the filter object would be very helpful.
      And also if there's a better way to dissipate the fog, I would appreciate to know!
      Thanks in advance!!!

      posted in Cinema 4D SDK python
      O
      ops
    • RE: How to scale(/rotate/move) a parent object without affecting its children?

      Thanks Illia, for the exmple code!
      Too bad that there's no built-in function for it, but I understand now that I'll have to inverse-matrix the children myself.

      posted in Cinema 4D SDK
      O
      ops
    • How to scale(/rotate/move) a parent object without affecting its children?

      Hi everyone,

      How can I set the scale of a parent object without affecting its children? I've tried using SetAbsScale() on the parent, but it also scaled all its children. I have seen a tutorial where you can press key '7' to do this interactively in the viewport, and I imagine there is a way to do this programmatically in python script?
      Any insight would be appreciated!

      posted in Cinema 4D SDK python windows s26
      O
      ops
    • RE: C4DAtom.SetParameter/GetParameter help

      Ah, I found out that using the brackets to set/get the parameter values is much simpler!
      For example: inheritanceEffector[c4d.MGINHERITANCEEFFECTOR_STRENGTH] = 1.0

      posted in Cinema 4D SDK
      O
      ops
    • C4DAtom.SetParameter/GetParameter help

      Hello,

      I would like to get and set the 'Strength' parameter of an inheritance effector inside a python node of Xpresso, but I'm not sure how to do this properly. According to the doc (https://developers.maxon.net/docs/py/2024_4_0a/classic_resource/object/oeinheritance.html), I need to pass in the flag, c4d.MGINHERITANCEEFFECTOR_STRENGTH, but it looks like I also need to pass in a descriptor flag and not sure what that is all about. Could someone provide an example of how to do this properly?

      Thanks in advance for any help!

      posted in Cinema 4D SDK 2024 python
      O
      ops
    • RE: Python equivalent of the Xpresso node "Get nearest point on spline"?

      Thanks a LOT @ferdinand and @mikeudin , for sharing your insights and suggestions!
      They are definitely valuable and am sure will come in handy in the future!!!

      posted in Cinema 4D SDK
      O
      ops
    • RE: Python equivalent of the Xpresso node "Get nearest point on spline"?

      Hi @i_mazlov !
      Thank you for your response and sharing the forum rules. I have gone over them. BTW it seems that the first link is broken, but I found it here:
      https://developers.maxon.net/forum/topic/15242/forum-overview

      As for the getsplinepoint function, it's good to just verify that I haven't missed its existence somewhere. I ended up using the Xpresso node and using its output in my python script. I will refer to Ferdinand's code if I have no way around it in the future.

      posted in Cinema 4D SDK
      O
      ops
    • Python equivalent of the Xpresso node "Get nearest point on spline"?

      Hi everyone!
      Is there a python sdk equivalent of the Xpresso node 'Get Nearest Point On Spline'?
      Since it exists as an Xpresso node, I would think it must exist for python script. If anyone has any idea, I would very much appreciate you sharing it!
      Thanks!

      posted in Cinema 4D SDK python 2024
      O
      ops