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

      The plugin ID '000' collides with another plugin ID in 'aaa'.

      r20 python windows • • milkliu
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      a_blockA

      Hi,

      good we got you going
      It is not wrong per se to use multiple plugin directories. Actually Cinema 4D R20 was specifically designed to have multiple ones. You just need to make sure not to have duplicate plugins in these directories.

      Cheers,
      Andreas

    • gheyretG

      This topic is deleted!

      • • gheyret
      10
      0
      Votes
      10
      Posts
      395
      Views
    • K

      Setting `coordinate system` using `MCOMMAND_MIRROR`

      python r20 • • kisaf
      3
      0
      Votes
      3
      Posts
      1.1k
      Views

      K

      Hi @m_adam
      Thank you for your reply. It works perfectly!

    • C4DSC

      Mac build fails, PC build OK

      • • C4DS
      8
      0
      Votes
      8
      Posts
      1.4k
      Views

      C4DSC

      @a_block
      No need for apologies.
      I thought the bearded guy had something to do with it ...
      Hence the reason I posted the message again. Luckily, JIT before the easter bunny was to blame.

    • C4DSC

      Team Render Client and plugins

      r20 • • C4DS
      2
      0
      Votes
      2
      Posts
      636
      Views

      C4DSC

      What the customer failed to mention was that the Team Render Client he used is on the same physical machine as his main Cinema 4D. Since both share the same plugins folder, the plugins were obviously installed manually for the main Cinema 4D, and thus also available for the local Team Render Client.

      Case closed.

    • P

      GetActiveObjects(flags)

      python r20 • • pim
      3
      0
      Votes
      3
      Posts
      536
      Views

      P

      @s_bach Ok, Thanks.

    • C4DSC

      Memory leak after plugin migration R16 -> R20

      • • C4DS
      14
      1
      Votes
      14
      Posts
      2.6k
      Views

      r_giganteR

      Thanks a lot Daniel for following up here.

      Glad to listen that the update actually fixed it, although even on 20.030 I had no better luck to reproduce.

      Best, Riccardo

    • R

      Getting a polygonal version of an animated mesh

      • • rui_mac
      3
      0
      Votes
      3
      Posts
      696
      Views

      R

      Well, I do have a loop but I just pasted the code that would, hopefully, perform the calculation.
      And I did tried the GetDeformCache approach, but my mistake was, in fact the cloning of the object.
      Thank you so much for the code, Adam.

    • B

      Get the "World Position" in "Deformed Space" of a point of the object.

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

      a_blockA

      Hi,

      I'm glad you found something working for you. I just want to mention, this way of using the deform cache directly will only work for very specific setups, for arbitrary object configurations you will most likely need to iterate through the cache. So, I think, it's worth to give those manuals another read.
      Also Maxime has posted some snippets in Getting a polygonal version of an animated mesh, which might be useful for you.

      Cheers,
      Andreas

    • merkvilsonM

      How to output BaseBitmap with ShaderData plugin

      python • • merkvilson
      2
      0
      Votes
      2
      Posts
      531
      Views

      r_giganteR

      Hi Merkvilson, thanks for reaching out us.

      If the final intent is to simply get BaseBitmapinformation to be returned by your shader, rather than sampling a Xbitmap shader I suggest instead to simply query the color information by using BaseBitmap::GetPixel and eventually apply color space transformation.

      def Output(self, sh, cd) : x = int(cd.p.x * self.bitmap.GetBw()) y = int(cd.p.y * self.bitmap.GetBh()) col = self.bitmap.GetPixel(x, y) return c4d.Vector(float(col[0]/256.0), float(col[1]/256.0), float(col[2]/256.0))

      Best, Riccardo

    • P

      Transform mouse coordinates to c4d coordinates

      r20 python • • pim
      5
      0
      Votes
      5
      Posts
      1.1k
      Views

      P

      Thanks for the answer.

      I just started with a command plugin.
      New requirements emerged and yes, perhaps I now change over to a tool plugin.

    • P

      Drag&Drop in Editor window

      r20 python • • pim
      3
      0
      Votes
      3
      Posts
      517
      Views

      P

      Yes - dragging session only occurs in a 2D space - I thought so.
      Thanks.

    • P

      Send message to tooldata

      r20 python • • pim
      4
      0
      Votes
      4
      Posts
      962
      Views

      P

      @C4DS said in Send message to tooldata:

      PrepareData

      Your first answer works great! Thank you.

    • mikeudinM

      TreeView: How to insert dragobject as new item

      r20 python • • mikeudin
      2
      0
      Votes
      2
      Posts
      447
      Views

      mikeudinM

      Solved. There is TREEVIEW_OUTSIDE_DROP option.

    • D

      Cinema 4D crashed without knowing it crashed

      • • daesuncupid
      2
      0
      Votes
      2
      Posts
      482
      Views

      a_blockA

      Hi,

      I'm sorry you are having issues with Cinema 4D.
      You have ended up in MAXON's support forum for 3rd party developers.
      This is actually not a good place for user support requests. Instead I suggest to use the support form on our website.

      Cheers,
      Andreas

    • P

      SpecialEventAdd and structures / containers

      r20 python • • pim
      2
      0
      Votes
      2
      Posts
      418
      Views

      M

      Hi @pim,

      In Python, SpecialEventAdd can only pass integer value, so the sender part can store the data into the document BaseContainer send the SpecialEventAdd/ Process this event read back the data from the active document BaseContainer.

      You can find valuable information on this topic https://developers.maxon.net/forum/topic/8219/10712_pluginmessage-and-pycobject-solved/5.

      Cheers,
      Maxime.

    • O

      Shader-Material Linking

      c++ r20 sdk classic api • • Ogers
      2
      0
      Votes
      2
      Posts
      419
      Views

      M

      Hi @Ogers, unfortunately, there is no direct way to do so.
      The only working solution is to retrieves the host of the shader (using BaseList2D.GetMain) Then iterates the description of this element and all its children to see where the shader is used.

      Cheers,
      Maxime.

    • chuanzhenC

      DeformCache Update

      r19 python • • chuanzhen
      3
      0
      Votes
      3
      Posts
      533
      Views

      chuanzhenC

      @m_adam Thanks👍

    • R

      This topic is deleted!

      • • Rage
      2
      0
      Votes
      2
      Posts
      25
      Views
    • T

      STEP/STP FILE IMPORT PYTHON DOCUMENTATION

      r20 python • • Telerak
      5
      0
      Votes
      5
      Posts
      3.5k
      Views

      T

      @mp5gosu @m_adam I'll test out these options and see how it works out. Thanks for the information guys, I appreciate it!