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. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • M

      Dialog refresh works correct in R18... not in R21 ?

      python r21 • • marcelobruno
      12
      0
      Votes
      12
      Posts
      648
      Views

      M

      @m_magalhaes Epic, It works! 🙂 Thank you very much Manuel!

    • S

      Iterating trough Field list?

      python r20 r21 • • sandidolsak
      6
      0
      Votes
      6
      Posts
      326
      Views

      ManuelM

      hello,

      I've forked the question to this thread

      cheers,
      Manuel

    • fwilleke80F

      STRINGENCODING -> StringEncodingRef ?

      classic api c++ r21 • • fwilleke80
      3
      0
      Votes
      3
      Posts
      154
      Views

      r_giganteR

      Hi Frank, I've just been confirmed that the function will be exposed in the future.

      Best, Riccardo

    • fwilleke80F

      C++ SDK doc: SetPriority / SetPluginPriority mixup?

      sdk c++ r21 • • fwilleke80
      2
      0
      Votes
      2
      Posts
      103
      Views

      r_giganteR

      Hi Frank, thanks a lot for reporting the issue here.

      It will appear fixed in the next future.

      Best, Riccardo

    • mfersaouiM

      Reorder gradient knots by position

      c++ sdk • • mfersaoui
      3
      0
      Votes
      3
      Posts
      210
      Views

      mfersaouiM

      @s_bach

      Hi Sebastian,
      Perfect, thank you very much.

      Best regards,
      Mustapha

    • mfersaouiM

      How to do that the generated object fill the viewport and be centered

      python • • mfersaoui
      11
      0
      Votes
      11
      Posts
      347
      Views

      mfersaouiM

      @m_magalhaes
      Hello Manuel,
      ok Thank you. I have used the solution that I have mentioned above.

    • O

      Add Child to description popup field.

      c++ r21 • • Ogers
      5
      0
      Votes
      5
      Posts
      250
      Views

      ManuelM

      hello,

      So yes, you have to react to MSG_DESCRIPTION_POPUP, you can see an example on the nodedata manual

      I thought first you wanted to create a popup menu.

      Cheers,
      Manuel

    • M

      This topic is deleted!

      • • marcelobruno
      1
      0
      Votes
      1
      Posts
      8
      Views

      No one has replied

    • CairynC

      Message behavior of tabbed dialogs changed R19->R21?

      • • Cairyn
      3
      0
      Votes
      3
      Posts
      205
      Views

      CairynC

      That's ok, I have meanwhile refactored everything* into a MessageData plugin anyway so the plugin will work** even if the dialog is closed.

      *Everything except for timer stuff, which for some reason works differently for a dialog than for a message plugin.

      **There are some strange effects like hanging or crashing application on Close, when the dialog is in certain states. I will need to investigate whether this is an effect of the missing CoreMessage calls or something that happens now due to refactoring.

    • O

      Align Group Parameters (Resource Files)

      r21 c++ sdk • • Ogers
      4
      0
      Votes
      4
      Posts
      206
      Views

      O

      Thanks @zipit,
      Managed to solve it thanks to you.

    • P

      Python c4d.CheckIsRunning(type) returning None

      python • • pe_matthewalexander
      4
      0
      Votes
      4
      Posts
      154
      Views

      ManuelM

      hello,

      without any news, i'll pass this thread to solved.

      Cheers,
      Manuel

    • A

      GetAllTextures from materials only

      • • AndreAnjos
      12
      0
      Votes
      12
      Posts
      524
      Views

      A

      Hi @m_adam,

      Thanks for letting me know! 😃

      Andre

    • fwilleke80F

      API: Bogus default value in SearchPluginMenuResource() declaration

      r21 • • fwilleke80
      5
      0
      Votes
      5
      Posts
      174
      Views

      M

      @fwilleke80 said in API: Bogus default value in SearchPluginMenuResource() declaration:

      IDS_EDITOR_PLUGINS

      Yes and also affect python.

    • mfersaouiM

      Object materials won't show up in final render

      c++ sdk • • mfersaoui
      4
      0
      Votes
      4
      Posts
      222
      Views

      M

      For more information about it, please read the BaseDocument Manual.

      Cheers,
      Maxime.

    • mfersaouiM

      How to access the ObjectPlugin child objects.

      c++ sdk • • mfersaoui
      4
      0
      Votes
      4
      Posts
      180
      Views

      M

      Hi @mfersaoui in the future try to split as much as possible your topic in order to help other users to find relevant information.
      I've forked all your discussion about baking in this post Bake Texture within ObjectData.

      And please mark this topic as solved if your original question is answered (which I think is the case by the good answers from @zipit).

      Cheers,
      Maxime.

    • ?

      Writing data to the .c4d file

      r20 python • • A Former User
      26
      0
      Votes
      26
      Posts
      1.1k
      Views

      ?

      @m_magalhaes said in Writing data to the .c4d file:

      You can also use del that is pythonic

      bc = doc.GetDataInstance().GetContainerInstance(MyUniqueId) bc.RemoveData(2000) #del (bc[2000])

      Wonderful, @m_magalhaes , thank you so much!

    • N

      Detect if document is being rendered in ModifyObject

      c++ windows macos r20 r21 • • neon
      3
      0
      Votes
      3
      Posts
      172
      Views

      N

      Hey zipit,
      thanks for the answer!

      Exactly what I needed!

      Best Regards,
      Florian

    • gheyretG

      utils.ViewportSelect() Problem

      r19 r20 r21 python • • gheyret
      5
      0
      Votes
      5
      Posts
      218
      Views

      gheyretG

      @zipit
      Thank you man ! I see how to fix it now!~~

      Cheers
      harry

    • mfersaouiM

      Make editable an object generated by GetVirtualObjects()

      python • • mfersaoui
      19
      0
      Votes
      19
      Posts
      735
      Views

      S

      Hello,

      as said before, it is not the purpose of GetVirtualObject() to edit the scene or to edit elements of the scene; this includes materials.

    • L

      How to get mouse drag info from external through Python API?

      • • lotusab12
      10
      0
      Votes
      10
      Posts
      543
      Views

      L

      @m_adam said in How to get mouse drag info from external through Python API?:

      Hi sorry about the confusion of server.close I was referring to self.sock.close.

      After some tests the main issue with your code is currently recvfrom is blocking, meaning until it receives something all the code is blocked, so TestBreak is never called and the thread never ends.

      So using timeout solve the issue.

      import c4d import socket class A(c4d.threading.C4DThread): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) end = False def Main(self): self.sock.bind(("localhost", 20014)) while True: # use timeout to check for TestBreak() try: self.sock.settimeout(1.0) self.sock.listen(1) conn, addr = self.sock.accept() # connection print('Connection address:' + str(addr)) data = conn.recv(BUFFER_SIZE) if not data: print("Got no data.") break else: print("received data:" + str(data)) print str(data) self._data = str(data) # DO SOMETHING conn.close() # timeout except: if self.TestBreak(): self.sock.close() self.End() return continue self.sock.close() if __name__ == "__main__": threadedServer = A() threadedServer.Start()

      Cheers,
      Maxime.

      Awosome, the whole script works very well now, thanks man, you help me quite a lot! mua~