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. kangddan
    3. Topics
    • Profile
    • Following 1
    • Followers 3
    • Topics 8
    • Posts 24
    • Best 2
    • Controversial 0
    • Groups 0

    Topics created by kangddan

    • kangddanK

      ChangeNBit() Method Parameter Issue: c4d.AHIDE_FOR_HOST Not Recognized?

      Cinema 4D SDK
      • windows 2024 python • • kangddan
      3
      0
      Votes
      3
      Posts
      592
      Views

      kangddanK

      @ferdinand Thansk!

    • kangddanK

      How to call other object's button attribute by a tag and simulate clicking?

      Cinema 4D SDK
      • 2024 windows python • • kangddan
      7
      0
      Votes
      7
      Posts
      1.1k
      Views

      ferdinandF

      Good to hear!

    • kangddanK

      How to Undo Switching Between Modes?

      Cinema 4D SDK
      • windows 2024 python • • kangddan
      10
      0
      Votes
      10
      Posts
      1.6k
      Views

      B

      @ferdinand said in How to Undo Switching Between Modes?:

      Well, just move the code which switches the mode to the end of your code when it is only cosmetic anyways. As I said above, a sensible way to use SetMode is when you want to leave the user in a state where he or she can continue working right away. But you can then just run all your code, check if everything went fine and then set your code. Otherwise you never set the mode, and therefore also have nothing to revert.

      It's a matter of workflow. It's not simply for checking the code that it's working properly. It's about a workflow. The workflow in the example is Select some mesh components, run the command. It generates something for you and switches the mode for you. If you selected the wrong components, you'd undo and try it again. But the undo won't put you back in the component mode. The issue is that that part of the command is not undoable so it's does hinder the workflow just a bit. I'm not necessarily advocating that it should be undoable or anything like that, just explaining the reasoning in this example and the value if it were undoable.

    • kangddanK

      How to Use Button Properties in an XPresso Python Node?

      Cinema 4D SDK
      • python 2024 windows • • kangddan
      3
      0
      Votes
      3
      Posts
      476
      Views

      kangddanK

      @ferdinand Thank you !

    • kangddanK

      Calling the button to create an object cannot add it to the undo queue

      Cinema 4D SDK
      • python • • kangddan
      3
      0
      Votes
      3
      Posts
      592
      Views

      kangddanK

      Thank you @m_adam It seems that the best approach is to manually create a null object and calculate its correct rotation matrix through certain methods to achieve the same effect. Once again, thank you for your code; it has been very useful to me!

    • kangddanK

      Adding a Morph Deformer Causes Pose Morph Tag to Stop Working

      Cinema 4D SDK
      • python • • kangddan
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      kangddanK

      Thank u @i_mazlov
      I appreciate you pointing me in the right direction. I will try to understand the workings behind the posemorph tag! 😊

    • kangddanK

      How to hide object local coordinates

      Cinema 4D SDK
      • python • • kangddan
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      i_mazlovI

      @chuanzhen ,

      Sorry for the delayed answer.

      The layer.locked behavior is integrated deeply in the internal code of cinema bypassing common cinema pipelines. Unfortunately, there's no good way to imitate such behavior without using layers.

      In case you decide to proceed with the layer approach, there's an example in github repo highlighting the usage of SetLayerData() function: layer_creates_r13.py.

      Cheers,
      Ilia