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. python
    Log in to post

    • All categories
    • mikeudinM

      Send Python Code To C4D from any Texteditor

      Watching Ignoring Scheduled Pinned Locked Moved General Talk python
      7
      1
      2 Votes
      7 Posts
      2k Views
      mikeudinM
      @mdr74 OK, thank you! Will check it.
    • B

      Autocomplete successful but symbol IDs are unrecognized (on Pycharm)

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      8
      0 Votes
      8 Posts
      2k Views
      M
      Thanks, Mike for providing them, as said before be aware that if you encounter slowdown for the autocompletion and in typing in your IDE, it may come from here Cheers, Maxime.
    • F

      Mograph Camera Shader from Python

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      3
      0 Votes
      3 Posts
      686 Views
      F
      Thanks that worked perfectly. I thank you both!
    • B

      Get/Fetch Node from an Existing Xpresso Tag

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      3
      0 Votes
      3 Posts
      974 Views
      B
      Thanks @m_adam. Works as expected. My bad, I was looking at the documentation hierarchy erroneously (i.e c4d > modules > graphview > GvNode) Just a note: I think the if Multiply: line is supposed to be if isMultiply:. Thanks again. Have a great day ahead!
    • B

      "Do something when a value is changed" in Python Node?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      6
      0 Votes
      6 Posts
      818 Views
      M
      Hi sorry I overlooked your answers. If you want to have something more consistent you should store it into the scene. So the things that make more sense is to store it into the basecontainer of the current GvNode. Like so import c4d def main(): if not c4d.threading.GeIsMainThread(): return bc = op.GetDataInstance() # Get an unique ID at https://developers.maxon.net/forum/pid store_value = bc[1000001] if Input1 != store_value: print "Something changed" bc[1000001] = Input1 else: print "Nothing changed" Cheers, Maxime.
    • T

      Is it possible to use PyCharm with Python 3.5 to edit Python Scripts for C4D?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      2
      0 Votes
      2 Posts
      540 Views
      r_giganteR
      Hi temple, thanks for reaching out us. With regard to your question, I confirm that it's not possible to switch to Python 3.x since R20 is compiled against Python 2.x. Best, Riccardo
    • B

      Python Node Executing Twice (R20.059 Bug?)

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      608 Views
      M
      My workaround still works for earlier version so you don't really need to check for version but it's up to you. Cheers, Maxime.
    • chuanzhenC

      Color Gui Off Animation,Key frames will still be recorded in AutoKeyframe mode!

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      1
      0 Votes
      4 Posts
      570 Views
      chuanzhenC
      @m_magalhaes Thanks, hope to fix it in a future release.
    • dskeithD

      Updating Tool Settings?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      2
      0 Votes
      2 Posts
      628 Views
      S
      Hello, which tool do you actually want to configure? best wishes, Sebastian
    • B

      Create Quicktab Radio Buttons

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      714 Views
      B
      @s_bach Thank you. Works as expected.
    • B

      Unable to Modify the Input Port of the Math Node

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      3
      0 Votes
      3 Posts
      693 Views
      B
      RE: appears they need a little bit more love. Thanks for the clarification. The code works as expected!
    • codysorgenfreyC

      Bug in mograph python effector default state R20

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      1 Votes
      4 Posts
      1k Views
      M
      Thanks for reporting I've created a bug report. Cheers, Maxime
    • B

      GetObject() on the Python Node inside the Xpresso

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      3
      0 Votes
      3 Posts
      662 Views
      B
      @s_bach Thank you! Works as expected.
    • B

      Press "Yes" when document is opened?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      5
      0 Votes
      5 Posts
      751 Views
      B
      @s_bach RE: The dialog box is not opened when you load the document. The dialog box is opened when you try to save it using CallCommand(). Thanks for the clarification. The code you presented works as expected. Thank you!
    • B

      Print to Console for the Python Node in the Expresso Editor?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      726 Views
      B
      Gotcha. Thanks for the reminder!
    • W

      Get active object after random value

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r19
      8
      0 Votes
      8 Posts
      2k Views
      W
      @m_magalhaes said in Get active object after random value: The problem here is that Message() is called before Main() (nothing you can changed) Hello. Thank you so much. I've understood. Yea, it works. I'd break my mind to understand it by myself. So, then I gonna optimize drawcalls (don't know how to call it another) of LaunchUpdate() func
    • B

      Add Object Output Parameter of a Node

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      6
      0 Votes
      6 Posts
      1k Views
      M
      This issue is now fixed in R21. Cheers, Maxime.
    • B

      Dragging of Parameters to Viewport

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      6
      0 Votes
      6 Posts
      822 Views
      B
      @m_adam Gotcha. Thanks for the confirmation.
    • mfersaouiM

      Limit the number of executions of an object plugin.

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      5
      0 Votes
      5 Posts
      1k Views
      mfersaouiM
      @s_bach Sorry, I just saw your message. the replies notifications was disabled. Thank You!
    • B

      Limit the doc.SearchObject() on the source document?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      5
      0 Votes
      5 Posts
      729 Views
      B
      @m_adam I have a handful of doc.SearchObject() so I was looking for an easier route. I guess there is no way around it except concatenating strings. Anyhow, thanks for the code and confirmation. Will tag this thread as closed. Have a great day ahead!