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

      Moving a group of spline points

      python sdk • • mfersaoui
      3
      0
      Votes
      3
      Posts
      507
      Views

      ManuelM

      hello,

      happy you found your solution, and thanks for the feedback πŸ™‚

      Cheers
      Manuel

    • O

      Default startup settings

      r20 maxon api sdk windows c++ • • Ogers
      8
      0
      Votes
      8
      Posts
      1.6k
      Views

      O

      Thank you for the help @m_magalhaes

    • G

      This topic is deleted!

      • • gsmetzer
      4
      0
      Votes
      4
      Posts
      28
      Views
    • P

      Retrieving particle positions for Multi-Instance

      c++ r20 • • peterakos
      3
      0
      Votes
      3
      Posts
      647
      Views

      P

      Thank you for your help !

    • Leo_SaramagoL

      PYTHON - Userdata CTracks and Basecontainer

      • • Leo_Saramago
      12
      0
      Votes
      12
      Posts
      2.4k
      Views

      ManuelM

      hello,
      thanks @zipit for answering the question πŸ™‚

      and thanks you both for the kinds words πŸ™‚

      Cheers,
      Manuel

    • B

      C4D Crashes on Getting All Specific Type of Objects

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

      B

      @zipit

      Thanks for the response and clarification. Works as expected

      @m_magalhaes
      Sorry about that. Will be more careful next time.

    • F

      Check object (poly) intersect

      python • • froslie
      7
      0
      Votes
      7
      Posts
      1.3k
      Views

      ManuelM

      @fwilleke80 as i mention in the other post, the problem (at least with our raycolider) is that if your ray hit an edge, it will hit 2 polygons at the same time. If it hit a point, it will hit <number of polygons attached to that point> times.

      It can be good enough but you have to be careful if you really want something solid.

      Cheers
      Manuel.

    • G

      Spline User Data Presets

      python r20 • • gsmetzer
      11
      0
      Votes
      11
      Posts
      1.7k
      Views

      G

      Thank You @m_magalhaes very helpful! I succeeded. I should have been able to figure this out from the example in the API.
      I've used the code basically as you have it with my spline datas saved in different hyperfiles. I then load that data from my tag.

      Thanks again.

    • ferdinandF

      c4d.modules.volume.VolumeObject.GetVolume() returns unknown data type

      sdk python r20 windows • • ferdinand
      3
      0
      Votes
      3
      Posts
      476
      Views

      ferdinandF

      Hi,

      thank you for the clarification.

      Cheers
      zipit

    • G

      Load file from plugin directory

      python sdk • • gsmetzer
      4
      0
      Votes
      4
      Posts
      777
      Views

      ManuelM

      hello,

      @zipit thanks for your answer.

      for your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here.

      Q&A New Functionality. How to Post Questions especially the tagging part.

      I've added the tags and marked this thread as a question so when you considered it as solved, please change the state πŸ™‚

      In the python help, you have a link to github where you can find examples.
      https://github.com/PluginCafe/cinema4d_py_sdk

      you will see sometimes in those example this code :

      path, fn = os.path.split(__file__) bmp = bitmaps.BaseBitmap() bmp.InitWith(os.path.join(path, "res", "gravitation.tif"))

      Just to add a few words about c4d.storage.GeGetC4DPath() That's the classic API.

      In c++ with the maxon API you have GetUrl

      In Python, in r20 symbol are not set and if you want to retrieve the resource directory it will return the Cinema4D's one and not your plugin's one.

      Cheers
      Manuel

    • chuanzhenC

      Weight Manager Window access help

      python r20 • • chuanzhen
      7
      0
      Votes
      7
      Posts
      1.0k
      Views

      chuanzhenC

      @zipit Thanks for showing me so much detail.😁

    • rsodreR

      Hair material Thickness Texture on spline segments

      r20 r19 c++ • • rsodre
      6
      0
      Votes
      6
      Posts
      888
      Views

      rsodreR

      @m_magalhaes Based on the hair_shader.cpp example, I implemented a workaround with a custom shader on the Texture attribute, using calc_sample to sample per segment. Works fine!

    • Leo_SaramagoL

      PYTHON - GetCustomDataTypeDefault(--- integer ---)

      • • Leo_Saramago
      6
      0
      Votes
      6
      Posts
      1.0k
      Views

      ManuelM

      Hello,

      nothing to add, thanks @zipit for the answer πŸ™‚

      @Leo_Saramago don't forget to mark your thread to solved.

      Cheers,
      Manuel

    • A

      Get shader's parent ID

      python r19 • • AndreAnjos
      8
      0
      Votes
      8
      Posts
      1.3k
      Views

      A

      @m_magalhaes said in Get shader's parent ID:

      hello,
      thanks @zipit ^^

      just one thing, in the context of the script manager, you don't need DOC = c4d.documents.GetActiveDocument() there is already doc.

      cheers,
      Manuel.

      Corrected! ☺

      Thank you Manuel!

    • F

      Detect RenderDocument() in videopost

      • • Filip
      5
      0
      Votes
      5
      Posts
      870
      Views

      F

      @m_magalhaes

      "when you are using RenderDocument, you can set the RENDERFLAGS, so it can be virtually "anything""
      -Yes, that makes sense. Thanks.

      "Can i ask you why you need to know if a render have been started using the RenderDocument() function ?"
      -In a custom renderer, I am exploring the possibility of sometimes (depending on user selected options) sending the rendered images to an external image viewer (not the c4d picture viewer). In this case, if RenderDocument() is called, we would still want to render to the c4d bitmap to make sure RenderDocument() correctly returns an image.

      Anyway, as I said, this was a bit of a long shot. Since this appears not to be possible, I will explore other options.

      Thanks!
      /Filip

    • F

      Safety of GetCache() after ExecutePasses()?

      r20 classic api • • Filip
      3
      0
      Votes
      3
      Posts
      542
      Views

      F

      @m_magalhaes said in Safety of GetCache() after ExecutePasses()?:

      The scene will be update and you can retrieves the caches.

      Great, thanks!

      /Filip

    • J

      How to use BaseDraw::DrawObject/DrawPolygonObject draw constant color like Display Tag Constant Shading mode

      c++ r20 • • Jmelon
      4
      0
      Votes
      4
      Posts
      667
      Views

      ManuelM

      @Jmelon said in How to use BaseDraw::DrawObject/DrawPolygonObject draw constant color like Display Tag Constant Shading mode:

      and sorry for my negligence, I will pay attention next time

      Don't worry at all, it helps us to answer your question faster and searching trough the forum.

      Cheers,
      Manuel

    • B

      Import C4D vs Import Maxon

      python r21 • • bentraje
      9
      0
      Votes
      9
      Posts
      1.0k
      Views

      B

      @zipit @m_magalhaes

      Yes, zipit was correct on my concern:
      If he has to worry about the new API on day-2-day tasks like selecting an object

      Guess, I don't have to for now.

      Thanks for the clarification.

    • B

      Hide a specific object in a specific viewport but not in others?

      r20 python • • bentraje
      9
      0
      Votes
      9
      Posts
      1.5k
      Views

      ManuelM

      Hello,

      This thread will be considered as solved tomorrow unless you have something to add ?

      Cheers,
      Manuel

    • B

      Creating Pop-up Menus

      r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      B

      @m_adam

      RE: Maya radial
      Yea, it by theory the multiple gedialogs with pop-up from certain distance from the mouse should create a radial. I'll probably have it for another time/thread.

      Thanks for the response. Will consider this thread close

      RE: non working code example.
      Sure sure. Will let you know if anything comes up. The codes I referred above was from awhile ago, so I don't have immediate memory of them.