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

      class SplineHelp buggy? Doesn't work correctly with closed segmented splines

      r23 s22 r21 r20 python c++ • • fwilleke80
      3
      0
      Votes
      3
      Posts
      120
      Views

      fwilleke80F

      Hi Manuel,

      thanks for the info! If smooth is set to false, the wrong positions disappear in deed. The distribution of the positions, however, is much uglier. It requires the user to change some specific attributes of the spline to make it look nice.

      But I think, that's ok for now.

      Thanks again & greetings,
      Frank

    • ?

      Get Active Timeline Request

      • • A Former User
      7
      0
      Votes
      7
      Posts
      266
      Views

      annA

      Indeed a better sdk will be better.
      I actually also hope that sdk can recognize which parameters of the object are activated in the object manager.
      I know that because c4d supports opening multiple object managers at the same time, this is really convenient.
      But it will also make it impossible to know which object manager the user is using, so there is no way to identify it in the current SDK.

    • ?

      Syncing Object Property Update in ObjectData

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      111
      Views

      ?

      @zipit I'll post code with my scenes/screenshots in the future.

      Setting the value in MSG_DESCRIPTION_POSTSETPARAMETER fixed my issue! Wow, how do you know all of this stuff??!

    • fwilleke80F

      Opening a maxon::URL in the browser: Anchors and query parameters?

      r20 r21 s22 r23 c++ • • fwilleke80
      5
      0
      Votes
      5
      Posts
      195
      Views

      fwilleke80F

      Thanks for confirming!

      The strange thing is that I can reproduce this even in R20. Seems, not many people use this function to open URLs.

      I'll mark this as solved then, as my solution presented in this thread works flawlessly on all R2x releases.

      Cheers,
      Frank

    • ferdinandF

      NodeData.Message raises confusing exception when method returns non-conformant return value type.

      r23 python windows • • ferdinand
      2
      0
      Votes
      2
      Posts
      154
      Views

      M

      Hi thanks for the report this was already reported in Phong Tag with ObjectData and this is going to be fixed in the release after R23 SP1.

      Cheers,
      Maxime.

    • mikeudinM

      GetDescription for Document Modelling Settings

      • • mikeudin
      3
      0
      Votes
      3
      Posts
      153
      Views

      mikeudinM

      Great! Thank very much @m_adam!😎👍

    • ferdinandF

      c4d.Vector.__init__ does not accept named arguments

      r23 r21 sdk python windows • • ferdinand
      4
      1
      Votes
      4
      Posts
      122
      Views

      ferdinandF

      Hi,

      I did not really expect an answer, I just did put it up to make you guys aware.

      Regarding your reply, I agree with most of it and am aware that there a some hurdles to overcome in mapping C++ interfaces to Python, i.e. that you do run into problems in general when you want to express overloaded methods in Python. But as @mp5gosu pointed out, my major point was that the function does not accept named arguments at all. Which is mainly a problem because the docs tell you explicitly otherwise in two ways. First of all the docs say explicitly that all arguments are optional which implies for Python usually that I can pick and choose in which arguments I can pass by passing named arguments. And secondly, you print out the signature as Vector.__init__(x=0.0, y=0.0, z=0.0) which implies the same.

      I would have probably ignored all this and booked it under "that's for me to know and for you to find out", if it wasn't for the fact that the method does not raise a TypeError on attempts of feeding it with such unknown named arguments. Which can make this quite critical IMHO.

      Cheers,
      zipit

    • J

      CAMorphNode.SetPointCount() always return false

      python r21 • • Jmelon
      5
      0
      Votes
      5
      Posts
      124
      Views

      J

      @m_adam Thank you for your answer. C++ documentation have a "Example" show how to use flags in CAMorph.SetMode, but python documentation not (at least in R21.022), i compared the C++ code with Python, then went back to the C++ documentation and found this.

    • B

      Iterate over the View/Hotspots of Visual Selector Tag

      r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      134
      Views

      B

      RE: This is a limitation you also have with the visual selector

      Not really. You can multiple select hotspots and/or controllers in the visual selector.

      Anyhow, thanks for the response. I guess there is no way around this.

    • P

      Combine UV and worldposition while shader rendering

      python • • pyr
      4
      0
      Votes
      4
      Posts
      261
      Views

      ManuelM

      hi,

      I had a look but as @zipit said, there's not way in python.

      Cheers,
      Manuel

    • J

      OBJECT_INPUT Child Updating

      sdk r20 c++ • • JohnThomas
      13
      0
      Votes
      13
      Posts
      627
      Views

      r_giganteR

      Hi @JohnThomas , the data passed in the method is actually carrying the destination object.

      The code should look like

      ... if (type == MSG_EDITABLE_END) { BaseObject* dstObject = static_cast<BaseObject*>(data); if (!dstObject) return false; BaseObject* child = dstObject->GetDown(); if (child) { child->Remove(); BaseObject::Free(child); } } ...

      Cheers, R

    • ?

      Flat UV Projection in Python

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      227
      Views

      ?

      Thank you very much @zipit ! That works great.

    • B

      ObservableFinished() does not pass a job result to an observer

      c++ r21 windows • • Braeburn
      5
      0
      Votes
      5
      Posts
      302
      Views

      B

      Thank you very much, Manuel!
      This is a working solution for the issue and it helped me a lot!

      Best regards,
      Tim

    • N

      Selecting Different components but in Different modes

      • • noseman
      14
      0
      Votes
      14
      Posts
      602
      Views

      ManuelM

      hi,
      I can't reproduce that, what version are you using ?

      the only moment where a coordinates could be 0 is if the point and the object's pivot are sharing the same coordinates AND you have the "Enable Axis" enable.
      (or you are in object's rel or abs coordinate and the point is at the same position of the pivot's object.
      As if you were at the same time in object's mode and in point mode. (moving the object's pivot point and the modeling axis at the same time)

      So this look like a bug.

      by the way, what do you call the "default state" ? The last modeling axis position ? the position when you selected the polygon ?

      Cheers,
      Manuel

    • CairynC

      doc.GetLayerObjectRoot().InsertFirst(layer) does not work.

      python r21 • • Cairyn
      9
      2
      Votes
      9
      Posts
      279
      Views

      M

      This is fixed in R23.

      Cheers,
      Maxime.

    • fwilleke80F

      FieldList, and how to properly use it

      r20 r21 s22 r23 c++ • • fwilleke80
      8
      0
      Votes
      8
      Posts
      346
      Views

      fwilleke80F

      Thank you! 🙂

    • ?

      'SetRealTag' Request

      • • A Former User
      3
      0
      Votes
      3
      Posts
      140
      Views

      ?

      @m_magalhaes Hi Manuel! Thanks for the update.

    • B

      Connect C4D with Tkinter (External Application) ?

      r21 python • • bentraje
      12
      0
      Votes
      12
      Posts
      748
      Views

      B

      @r_gigante

      Thanks for the response and the website reference.
      I was able to work the code with the following revisions:

      def CoreMessage(self, id, bc): if id == 1234: P1MSG_UN = bc.GetVoid(c4d.BFM_CORE_PAR1) pythonapi.PyCObject_AsVoidPtr.restype = c_int pythonapi.PyCObject_AsVoidPtr.argtypes = [py_object] P1MSG_EN = pythonapi.PyCObject_AsVoidPtr(P1MSG_UN) # check message and act if (P1MSG_EN == 1): c4d.documents.GetActiveDocument().InsertObject(c4d.BaseObject(c4d.Ocube)) elif (P1MSG_EN == 2): c4d.documents.GetActiveDocument().InsertObject(c4d.BaseObject(c4d.Osphere))

      Thanks again. Will close this thread now.

    • D

      Create New Take Using Python

      • • davidtodman
      9
      0
      Votes
      9
      Posts
      558
      Views

      D

      @m_adam Thanks for your help. Apologies for not following the rules. I'm struggling with the rules of Python at the moment so it's not surprising! Will try to be a better poster in future.

    • B

      Unusual "NoneType" Error for GetDeformCache()

      r21 python • • bentraje
      12
      0
      Votes
      12
      Posts
      475
      Views

      B

      Hi @m_magalhaes

      Ah gotcha. I guess I can't change the deformer's priority.
      Anyhow. Thanks for the confirmation.