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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • B

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

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      648
      Views

      B

      Gotcha. Thanks for the reminder!

    • B

      GetObject() on the Python Node inside the Xpresso

      r20 python • • bentraje
      3
      0
      Votes
      3
      Posts
      568
      Views

      B

      @s_bach

      Thank you! Works as expected.

    • M

      How ObjectData add PRIORITY and execute

      c++ r20 • • mike
      3
      0
      Votes
      3
      Posts
      802
      Views

      M

      @s_bach Thank you!

    • J

      Retrieving Deformed Splines

      c++ r20 sdk • • JohnThomas
      3
      0
      Votes
      3
      Posts
      647
      Views

      J

      Thanks for the reply, it really helped me out.

      John

    • B

      Press "Yes" when document is opened?

      r20 python • • bentraje
      5
      0
      Votes
      5
      Posts
      650
      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

      Unable to Modify the Input Port of the Math Node

      r20 python • • bentraje
      3
      0
      Votes
      3
      Posts
      584
      Views

      B

      RE: appears they need a little bit more love.
      Thanks for the clarification. The code works as expected!

    • dskeithD

      Updating Tool Settings?

      • • dskeith
      2
      0
      Votes
      2
      Posts
      460
      Views

      S

      Hello,

      which tool do you actually want to configure?

      best wishes,
      Sebastian

    • B

      Create Quicktab Radio Buttons

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      587
      Views

      B

      @s_bach

      Thank you. Works as expected.

    • B

      Python Node Executing Twice (R20.059 Bug?)

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      534
      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.

    • T

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

      r20 python • • temple
      2
      0
      Votes
      2
      Posts
      446
      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

    • P

      Executing action after the scene is rendered

      • • pe_matthewalexander
      2
      0
      Votes
      2
      Posts
      382
      Views

      r_giganteR

      Hi pe_matthewalexander , thanks for reaching out us.

      With regard to your question I suggest the following options (which strongly depend on the context you're supposed to run)

      implement a MessageData::CoreMessage() and check for EVMSG_RAYTRACER_FINISHED to be dispatched; use the BaseDocument::RenderDocument() to fire and control the render execution use the Remote effect as described here to have an external script being run upon rendering being completed implement your own VideoPostData (assuming you're willing to move to C++)

      Best, Riccardo

    • chuanzhenC

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

      r20 python • • chuanzhen
      4
      0
      Votes
      4
      Posts
      513
      Views

      chuanzhenC

      @m_magalhaes Thanks, hope to fix it in a future release.

    • W

      Get active object after random value

      python r19 • • Wusiki
      8
      0
      Votes
      8
      Posts
      1.3k
      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

    • F

      Mograph Camera Shader from Python

      • • fasteffect
      3
      0
      Votes
      3
      Posts
      526
      Views

      F

      Thanks that worked perfectly. I thank you both!

    • B

      Get/Fetch Node from an Existing Xpresso Tag

      r20 python • • bentraje
      3
      0
      Votes
      3
      Posts
      711
      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!

    • codysorgenfreyC

      Bug in mograph python effector default state R20

      r20 python • • codysorgenfrey
      4
      1
      Votes
      4
      Posts
      859
      Views

      M

      Thanks for reporting I've created a bug report.

      Cheers,
      Maxime

    • B

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

      r20 python • • bentraje
      6
      0
      Votes
      6
      Posts
      711
      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.

    • B

      Autocomplete successful but symbol IDs are unrecognized (on Pycharm)

      r20 python • • bentraje
      8
      0
      Votes
      8
      Posts
      1.3k
      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.

    • C4DSC

      HashMap with BaseArray as value

      r19 c++ • • C4DS
      3
      0
      Votes
      3
      Posts
      508
      Views

      C4DSC

      @r_gigante
      Thanks for the headsup about FindOrCreateEntry.
      Since Put does use that method internally, I didn't even consider about trying to use it, as I simply assumed it would have the same issue. Guess I was wrong about not trying it.

      Problem solved.

    • B

      Simulating a Scrub in the Timeline?

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      825
      Views

      ManuelM

      hi @bentraje ,

      Just to confirm @mp5gosu answer.

      We can also point you to BaseDocument manual where you have some information about ExecutePasses

      Cheers
      Manuel