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
    • Login
    1. Maxon Developers Forum
    2. Tags
    3. python
    Log in to post

    • All categories
    • 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
      762 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
      721 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
      464 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
      539 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
      517 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
      493 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
      618 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
      597 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
      930 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
      573 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
      655 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
      654 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
      1k 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
      967 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
      747 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
      921 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
      647 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!
    • J

      FBX Export plugin option setting with python

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      3
      0 Votes
      3 Posts
      2k Views
      J
      Thank you @m_adam I completed my exporter scripts to your help. I read Links, I will tagging next time. I'm studing c4d scripts. it still hard. Thank you again.
    • B

      Unusual Remove() Results

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      841 Views
      ManuelM
      hello, just a step to confirm @C4DS answer and if you look again at @r_gigante answer in this post it will make now fully sense. regarding your code i will go like this just to be a bit shorter and easier if i want to add or remove a tag from the list. safeTagList = [5617, 5600, 1604] tags = node.GetTags() for tag in tags: if tag not in safeTagList: tag.Remove() Cheers Manuel
    • S

      Getting Tag by name

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r20
      4
      0 Votes
      4 Posts
      885 Views
      S
      @m_magalhaes Oh yeah I forgot to add the tags. I'm using Python by the way. You can count this post as solved.