Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Home
    2. Tags
    3. python
    Log in to post
    • All categories
    • jcooperJ

      Materials don't accept Tags?

      Cinema 4D SDK
      • r21 python • • jcooper
      4
      0
      Votes
      4
      Posts
      203
      Views

      ManuelM

      hi,

      without futher feedback from you i'll set this thread to solved.

      Cheers,
      Manuel

    • ferdinandF

      c4d.utils.RangeMap clampval funkyness

      Cinema 4D SDK
      • r20 python • • ferdinand
      2
      0
      Votes
      2
      Posts
      117
      Views

      ManuelM

      Hi,

      thanks a lot. I've opened a bug entry for that one. It will be fixed in a futur release.

      Cheers,
      Manuel

    • codysorgenfreyC

      FontData BaseContainer IDs

      Cinema 4D SDK
      • python r20 • • codysorgenfrey
      3
      0
      Votes
      3
      Posts
      143
      Views

      r_giganteR

      Hi @codysorgenfrey, thanks for reaching out us.

      Glad to hear that the issue has been solved on your end: well done! If there's nothing left please mark the thread as Solved.

      Cheers, R

    • pyxelriggerP

      get initial position in python tag

      Cinema 4D SDK
      • r19 r20 r21 classic api python • • pyxelrigger
      5
      0
      Votes
      5
      Posts
      247
      Views

      ManuelM

      hi,

      without further feedback i'll set this thread as solved tomorrow.

      Cheer,
      Manuel

    • Tasos MagkafasT

      Xpresso & Python: Update an object's user data from other object...

      Cinema 4D SDK
      • python r21 • • Tasos Magkafas
      11
      0
      Votes
      11
      Posts
      826
      Views

      Tasos MagkafasT

      @m_adam
      Dear Maxime thanks for everything!
      But, unfortunally now that I almost finished this part I realized that all this scripting doen't give me the desired procedural result. It just changes the values once but if i change the values of the PARENT object the OBJECT_A (child) is not updated...
      Anyway I have to approach it in a different way.

      I think I should tag this thread as "SOLVED" and in case I need again help i create a new one.
      Please advise me Maxime.

      And for one more time THANK YOU both , Maxime and Zipit
    • P

      Profiling Python Plugins

      Cinema 4D SDK
      • r20 python • • pim
      13
      0
      Votes
      13
      Posts
      425
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly.

      Cheers,
      Ferdinand

    • mikeudinM

      Batch Processor: plugin for python scripts developers

      General Talk
      • • • mikeudin
      5
      4
      Votes
      5
      Posts
      752
      Views

      mikeudinM

      @m_adam Thank you!

    • P

      User Area and ScrollArea()

      Cinema 4D SDK
      • r20 python • • pim
      4
      0
      Votes
      4
      Posts
      164
      Views

      P

      Yes, I use the auto way.
      I thought that using ScrollArea() it would only display that part (no need to draw the other parts).
      So, fill the virtual UA once and then display parts of it using ScrollArea().

      But if "you still need to draw completely the GeUserArea with all the DrawBitmap", there will be no speed benefit.

      I will try it under R21 and will read "Profiling Python Plugins".

      Thank you, Pim

      24fbc034-a80c-42f0-acb3-77deffeadaec-image.png

    • C4DSC

      Cannot write specific values to UVWTag

      Cinema 4D SDK
      • r20 r21 c++ python • • C4DS
      6
      0
      Votes
      6
      Posts
      146
      Views

      r_giganteR

      It's actually due to a lower number of bits used to store the floating value.

    • pyxelriggerP

      Update button

      Cinema 4D SDK
      • python r20 r19 r21 • • pyxelrigger
      4
      0
      Votes
      4
      Posts
      350
      Views

      pyxelriggerP

      Thanks! seems to work well!

      the problem is that apparently it only runs on the tag, if I set the option as a UserData of my object, it doesn't work

    • pyxelriggerP

      how can i get the id of each target? note: I will add more with c4d.CallButton ()

      Cinema 4D SDK
      • python r21 classic api • • pyxelrigger
      3
      0
      Votes
      3
      Posts
      169
      Views

      M

      While the method provided by Zipit Is fine, it is not 100% reliable.

      here how to achieve, unfortunately, the ELEMENT_Count value is hardcoded and no way for you to retrieve it.

      constraintTag = doc.GetActiveTag() targetCount = constraintTag[c4d.ID_CA_CONSTRAINT_TAG_PARENT_TARGET_COUNT] for i in range(targetCount): CONSTRAINT_ELEMENT = 10 # This is hardcoded targetId = c4d.ID_CA_CONSTRAINT_TAG_PARENT_TARGET_COUNT + i * CONSTRAINT_ELEMENT + 1 print(constraintTag[targetId])

      Cheers,
      Maxime.

    • B

      Set Track Data Method?

      Cinema 4D SDK
      • r21 python • • bentraje
      4
      0
      Votes
      4
      Posts
      99
      Views

      B

      @zipit @m_adam

      Apologies for the late response. Thank you for the confirmation both.
      I will close this for now.

    • lasselauchL

      Change Color of Hyperlink Customgui

      Cinema 4D SDK
      • • • lasselauch
      3
      0
      Votes
      3
      Posts
      142
      Views

      lasselauchL

      Okay!
      Thanks for the info @m_adam !

      Oh, and on macOS it is General - Text - Flag Edit Saved
      Bildschirmfoto 2020-04-06 um 14.28.13.png

      ¯_(ツ)_/¯

      Cheers,
      Lasse

    • G

      Python Plugin Unicode Convert

      General Talk
      • python • • geese780
      4
      0
      Votes
      4
      Posts
      295
      Views

      M

      Just to add on top,
      os.path.listdir and os.path.join in python 2 are context-specific, so if you input a Unicode string it will output a Unicode string, if you input a regular string it will output a regular string.
      Now the culprit is on c4d.documents.MergeDocument because normally this method accepts a C++ Filename object (which is the Classic API that under the hood uses the new MaxonAPI maxon::Url). Unfortunately, the Python parser is not able to convert from a Python Unicode string to a C++ Filename, but only from a Python ASCII string to a filename.

      So indeed casting from Unicode string to ASCII is the solution.
      Cheers,
      Maxime.

    • lasselauchL

      How about updating ResEdit..?

      Cinema 4D SDK
      • • • lasselauch
      2
      0
      Votes
      2
      Posts
      221
      Views

      M

      Hi @lasselauch there is actually no plan to update ResEdit.

      There is the R20 Resource Editor but for the moment it's only for Node stuff.

      Cheers,
      Maxime.

    • M

      Python Generator - Adding Shaders to Deformer Objects

      Cinema 4D SDK
      • python • • moGRR
      11
      0
      Votes
      11
      Posts
      369
      Views

      M

      @mp5gosu

      Ah brilliant. Thanks for that!

      And apologies for being such a noob at this.

    • B

      Get Decimal/Floating Values On Current Frames Divided by FPS?

      Cinema 4D SDK
      • r21 python • • bentraje
      7
      0
      Votes
      7
      Posts
      174
      Views

      ManuelM

      @mp5gosu thanks for the addition.

      Cheers,
      Manuel

    • N

      Using Python Node to Traverse Deep Hierarchy... fail

      Cinema 4D SDK
      • python • • noseman
      5
      0
      Votes
      5
      Posts
      250
      Views

      N

      Ah, you probably expect the toroids to also rotate around their own axis

      exactly. Thanks

    • M

      Python Generator - Accessing Contour Spline

      Cinema 4D SDK
      • python • • moGRR
      3
      0
      Votes
      3
      Posts
      169
      Views

      M

      Thanks again @PluginStudent for helping me so quickly.

      That was enough information to help me find the .MakeUserSpline function that allows me to do exactly what I'm after:

      MakeUserSpline('sin(x * PI)', 5)

      More info here for anyone looking.

      Cheers,
      Jamie

    • N

      XPRESSO Python Node "Could not find port value for..." Error

      Cinema 4D SDK
      • python • • noseman
      3
      0
      Votes
      3
      Posts
      180
      Views

      N

      @m_magalhaes
      Oh man... thank you so much. Even when I read your reply, I couldn't "see" it in the Node... was staring at it for to long.
      thanks.