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. Gaal Dornik
    3. Topics
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 26
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Gaal Dornik

    • G

      How to weld two points to the last selected point?

      Cinema 4D SDK
      • windows s26 2023 python • • Gaal Dornik
      5
      0
      Votes
      5
      Posts
      922
      Views

      i_mazlovI

      Yes, you found the thread about point selection just right!

    • G

      GetActiveToolData() doesn't work for Mirror Tool

      Cinema 4D SDK
      • windows s26 python 2023 • • Gaal Dornik
      5
      0
      Votes
      5
      Posts
      846
      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?

      Cinema 4D SDK
      • s26 windows python • • Gaal Dornik
      3
      0
      Votes
      3
      Posts
      524
      Views

      G

      Thanks man, i'll take a look at it!

    • G

      How to create a radial (pie) menu?

      Cinema 4D SDK
      • windows s26 python • • Gaal Dornik
      6
      0
      Votes
      6
      Posts
      1.7k
      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.

    • G

      Command Make Editable confusion

      Cinema 4D SDK
      • s26 windows python • • Gaal Dornik
      4
      0
      Votes
      4
      Posts
      686
      Views

      G

      Got it! Thanks.

    • G

      Howto add headers & dividers for a ShowPopupDialog?

      Cinema 4D SDK
      • windows s26 python • • Gaal Dornik
      13
      0
      Votes
      13
      Posts
      2.1k
      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

      Bugs
      • python s26 windows • • Gaal Dornik
      2
      0
      Votes
      2
      Posts
      681
      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

    • G

      ModuleNotFoundError, but the file is in the same folder

      Cinema 4D SDK
      • windows python s26 • • Gaal Dornik
      3
      0
      Votes
      3
      Posts
      510
      Views

      G

      I see, thanks. But honestly i don't get it why the plugins folder isn't in the search path...

    • G

      Howto to pass arguments to a python script

      Cinema 4D SDK
      • python windows • • Gaal Dornik
      4
      0
      Votes
      4
      Posts
      537
      Views

      ferdinandF

      Hey @Gaal-Dornik,

      In Cinema 4D you can bind a command to multiple shortcuts, but adding arguments is not possible. You would have to poll the keyboard yourself to distinguish such events.

      Cheers,
      Ferdinand

      Result:

      49a4bee1-8135-412f-b238-43d21184e071-image.png

      Code:

      """Runs different code based on which keys are pressed. Must be run as a Script Manager script. Pressing Shift+ALT+A while the script is invoked will print "Foo", while pressing Ctrl+Alt+A will print "Bar". See: https://developers.maxon.net/docs/py/2024_0_0a/misc/inputevents.html """ import c4d def CheckKeyboardState(*args: tuple[str]) -> bool: """Returns #True when the given key sequence is pressed, #False otherwise. """ result = [] for char in (n.upper() for n in args if isinstance(n, str)): if char == "SHIFT": c = c4d.KEY_SHIFT elif char == "CTRL": c = c4d.KEY_CONTROL elif char == "ALT": c = c4d.KEY_ALT else: c = ord(char) bc = c4d.BaseContainer() if not c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD, c, bc): raise RuntimeError("Failed to poll the keyboard.") result += [True if bc[c4d.BFM_INPUT_VALUE] == 1 else False] return all(result) def main() -> None: """ """ if CheckKeyboardState("Shift", "Alt", "A"): print ("Foo") elif CheckKeyboardState("Ctrl", "Alt", "A"): print ("Bar") else: print("None") if __name__ == '__main__': main()