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
    • dskeithbuckD

      Getting the State of Modifier Keys (ctrl/cmd, shift, alt)

      Watching Ignoring Scheduled Pinned Locked Moved General Talk python
      5
      1 Votes
      5 Posts
      1k Views
      ManuelM
      I'm not sure it's a bad habit or what's the difference. There's maybe type conversion, i don't know. Or maybe with the code optimization there's no difference at the end. I just wanted to add my 2 cents to have bool and not value xD Cheers Manuel
    • S

      Matrix/HPB to XYZ and vice versa

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r20
      7
      0 Votes
      7 Posts
      2k Views
      S
      @m_magalhaes said in Matrix/HPB to XYZ and vice versa: convert the matrix to XYZ xyz = c4d.utils.MatrixToHPB(m, order=c4d.ROTATIONORDER_XYZGLOBAL) # convert from radian to deg for i in xrange(3): xyz[i] = c4d.utils.RadToDeg(xyz[i]) print xyz Works perfectly. Thanks!
    • B

      Tag Based Subdivision Surface?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      1k Views
      B
      @r_gigante @Cairyn Thanks for the thorough explanation. I underestimated the task. I initially thought it was just an easy click since the function is already available as a generator. I was looking for the same behavior in Maya. Where the subdivision deformer or modifier is not a separate object. So I can select objects easily. Anyhow, will settle for what is available in C4D currently. Thank you. Will close this for now.
    • B

      Access Bake Objects (Timeline) or Bake Animation to Curves

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      1k Views
      B
      @lasselauch I guess I need to revisit the script in the link above when I need to bake user data. Anyway, your script will do at the moment. It's readable enough for my newbie eyes It works as I expected! Thanks for the handy script. @m_adam Thanks for the confirmation!
    • A

      Attaching image to camera calibrator adds offset to camera

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r19
      10
      0 Votes
      10 Posts
      2k Views
      A
      Hi Manuel, Right! Found the culprit... symbolcache file... Couldn't understand how it was working for you and not for me. After deleting symbolcache worked straight away and it seems that also works without having doc.SetActiveTag(outro_cal_tag) Thank you very much for your awesome help with this! Andre
    • B

      Simulating a Scrub in the Timeline?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK r20 python
      4
      0 Votes
      4 Posts
      1k 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
    • 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
      634 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
      852 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
      765 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
      511 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
      574 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
      533 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
      569 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
      672 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
      643 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
      616 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
      699 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!