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

      Sperical floor issue

      sdk c++ python • • svende
      3
      0
      Votes
      3
      Posts
      502
      Views

      ManuelM

      hi,

      without any further feedback, this thread will be considered as solve tomorrow.

      Cheers
      Manuel

    • M

      controlled rendering programmatically

      sdk python • • mafster
      3
      0
      Votes
      3
      Posts
      534
      Views

      ManuelM

      hi,

      without any further feedback, this thread will be considered as solve tomorrow.

      Cheers
      Manuel

    • R

      How to make DrawTexture ignore the Depth of Field option?

      python r20 • • rui_mac
      8
      0
      Votes
      8
      Posts
      940
      Views

      ManuelM

      hi,

      without any further feedback, this thread will be considered as solve tomorrow.

      Cheers
      Manuel

    • V

      Camera animation to Text file?

      r20 python • • Vibz
      3
      0
      Votes
      3
      Posts
      845
      Views

      V

      This is a great start - will defiantly be using this to get closer to the desired end result 🙂
      Thanks so much Manuel for your help!

    • ferdinandF

      GetPointOneRingPoints() unexpected behavior

      windows python r20 • • ferdinand
      4
      1
      Votes
      4
      Posts
      833
      Views

      ferdinandF

      Ok, thank you. I was a bit unsure what "one ring points" are supposed to be and if this is actually a bug and not a feature 😉

      Cheers,
      zipit

    • mfersaouiM

      How to get the current viewport shading modes using python

      python sdk • • mfersaoui
      5
      0
      Votes
      5
      Posts
      717
      Views

      mfersaouiM

      @s_bach
      Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.

    • mfersaouiM

      Set the "DrawCircle" orientation to face camera

      • • mfersaoui
      5
      0
      Votes
      5
      Posts
      625
      Views

      mfersaouiM

      @m_magalhaes
      Thank you. I made some changes but its work!

      Cheers,
      Mustapha

    • P

      Generator Plugin update while under Fracture Object

      r20 python • • pyr
      4
      0
      Votes
      4
      Posts
      740
      Views

      ManuelM

      Hello,

      Sorry for the delay.
      The bugs have been confirmed and will be fixed on a futur release.

      Cheers
      Manuel

    • P

      Tag plugin and rendering

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

      S

      Hello,

      without seeing your code or any error message it is impossible to give any advice.

      But "works in viewport but not in rendering" sounds like you are using c4d.documents.GetActiveDocument() somewhere. See also BaseDocument Manual.

      best wishes,
      Sebastian

    • P

      Undo of inserting a tag

      python • • pim
      4
      0
      Votes
      4
      Posts
      532
      Views

      S

      Also, if you want to move a tag, you first have to remove it from the original object. So you don't insert, you change the position of the tag in the scene graph.

      doc.StartUndo() doc.AddUndo(c4d.UNDOTYPE_CHANGE, tag) tag.Remove() op.InsertTag(tag) doc.EndUndo()
    • Leo_SaramagoL

      PYTHON - NBIT - UserData Attirbutes Manager Selection

      • • Leo_Saramago
      3
      0
      Votes
      3
      Posts
      606
      Views

      Leo_SaramagoL

      Thanks, m_magalhaes!

    • A

      Add Position Velocity Port

      r19 python • • AndreAnjos
      7
      0
      Votes
      7
      Posts
      1.0k
      Views

      A

      @m_magalhaes said in Add Position Velocity Port:

      Hello,

      Sorry for the late reply.
      This was a bug (with other ports also) and it's fixe for the next release.

      Cheers
      Manuel

      @m_magalhaes Ah OK! Thanks for lettings us know! 👍

    • fwilleke80F

      Linker Error: LIMIT<Int32>::MAX undefined

      r20 c++ • • fwilleke80
      3
      0
      Votes
      3
      Posts
      446
      Views

      fwilleke80F

      Hi Sebastian!

      Thanks for you quick reply. He will try and reduce the code as much as possible (as it is a commercial project of your company). When he's done, I'll send it over.

      I am aware that you can't do much without example code. We were hoping there were some common stumble stones you might have come across.

      Another thing worth mentioning might be that the linker only fails when building on macOS. Windows is doing fine...

      Cheers,
      Frank

    • rsodreR

      InitRender() with large textures

      c++ r19 • • rsodre
      21
      0
      Votes
      21
      Posts
      14.9k
      Views

      ManuelM

      hello,

      Thanks a lot for your feedback and happy to see your issue resolved.

      Cheers
      Manuel

    • J

      [Beginner:Python] Turn object into a point selection bounding box

      • • joe_curwen
      5
      0
      Votes
      5
      Posts
      975
      Views

      ManuelM

      hello,

      If you have nothing to add, this thread will be considered as "solved" tomorrow.

      Cheers,
      Manuel

    • mrittmanM

      Add/Remove Groups of User Data

      python • • mrittman
      12
      0
      Votes
      12
      Posts
      3.4k
      Views

      mrittmanM

      @m_magalhaes said in Add/Remove Groups of User Data:

      Hello,

      I was also talking about something like this. But it's not the best way to go. I suggest a TagData (plugin) with his own UI.

      pyTagCode = '\ import c4d \n\ #Welcome to the world of Python \n\ \n\ def main():\n\ print "this ia a message"\n\ \n\ ' import c4d # Main function def main(): if op is None: gui.MessageDialog("Please selecte a target object") tag = c4d.BaseTag(c4d.Tpython) tag[c4d.TPYTHON_CODE] = pyTagCode op.InsertTag(tag) c4d.EventAdd() # Execute main() if __name__=='__main__': main()

      By the way, don't forget you can save tag presets, that include python tags. You can simple add them with right click on your object in OM and "Load tag preset"

      Cheers,
      Manuel

      Oh this is good to know! Thanks so much for the information, this is quite helpful!

      Matt

    • D

      Browsing Plugin Paths

      c++ sdk r20 • • d_schmidt
      4
      0
      Votes
      4
      Posts
      1.5k
      Views

      D

      Thank you both for the replies! Between both of them I have exactly what I need, thanks.

    • P

      Bitmaps in custom shaders don't appear in Texture Manager

      r20 c++ sdk • • peterakos
      5
      0
      Votes
      5
      Posts
      941
      Views

      S

      Hello,

      I tested it with the Gradient Shader example from the cinema4dsdk and it works fine as far as I can tell.

      I just removed the check for ASSETDATA_FLAG::TEXTURESONLY:

      Bool SDKGradientClass::Message(GeListNode* node, Int32 type, void* data) { switch (type) { case MSG_GETALLASSETS: { AssetData* const assetData = static_cast<AssetData*>(data); // checks if only texture assets should be added if (assetData == nullptr) return true; BaseList2D* const baseList2D = static_cast<BaseList2D*>(node); if (baseList2D != nullptr) { // get the file name const Filename path = baseList2D->GetData().GetFilename(GRAD_FILE); // check if the file name is set if (path.IsPopulated()) { // add the file name assetData->Add(path, nullptr); } } break; } } return SUPER::Message(node, type, data); };

      Regarding Shader hierarchies: I guess you can send the message to your child-shaders yourself, to make sure they receives the message.

      best wishes,
      Sebastian

    • B

      Change an attribute from a dialogue plug-in

      r20 python • • bentraje
      12
      0
      Votes
      12
      Posts
      1.2k
      Views

      B

      @s_bach

      RE: You have to find a way to avoid that unnecessary rebuild of your layout after user interaction in your dialog.
      I'm not really sure how to do that. Since I just butchered the code from a sample plug-in.
      That will probably a problem for another thread.

      Anyway, it's functional at the moment. I'll settle for this.

      Thanks again and sorry for the trouble.

      Will close the thread now.

      Have a great day ahead!

    • C

      This topic is deleted!

      • • cortes_
      1
      0
      Votes
      1
      Posts
      10
      Views

      No one has replied