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. JACK0319
    3. Topics
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 13
    • Best 2
    • Controversial 0
    • Groups 0

    Topics created by JACK0319

    • J

      document bug | GeDialog.SetString flags mismatch

      Cinema 4D SDK
      • python 2024 • • JACK0319
      2
      0
      Votes
      2
      Posts
      360
      Views

      ferdinandF

      Hey @JACK0319,

      Thank you for your issue report, I have fixed it and it will be shipped with the next release.

      Cheers,
      Ferdinand

    • J

      Documentation error? splineHelp.InitSpline(self, op, up=Vector(0) ) raise an error

      Bugs
      • python 2024 • • JACK0319
      2
      0
      Votes
      2
      Posts
      614
      Views

      ferdinandF

      Hey @JACK0319,

      thank you for reaching out to us and reporting this. You are right, up is incorrect and upvector is the correct keyword. I fixed this and double checked the other keywords for the next upcoming Python documentation release.

      Cheers,
      Ferdinand

    • J

      SendModelingCommand(CURRENTSTATETOOBJECT) Unable to get correct results

      Cinema 4D SDK
      • 2024 python • • JACK0319
      3
      0
      Votes
      3
      Posts
      594
      Views

      i_mazlovI

      Hello @JACK0319 ,

      I'm not sure what you consider the "correct result", but it looks good here:
      9888272b-b870-4514-80e9-e16f01e6dc14-image.png

      However, there're a couple things to mention about your script.

      First, there SendModelingCommand() function executes passes itself, so there's no need in munally running ExecutePasses() function.

      Second, in the last line you insert the result object from the CSTO command into document stored in doc variable. At this point doc still points to the document that was active before you executed function InsertBaseDocument(). After this function call, GetActiveDocument() returns the same document that you have in temp_doc. However, there's one edge case, which happens if you execute InsertBaseDocument() function while currently active document is empty. In this case, current document is deallocated and doc points to the invalid document. This is why you see the corresponding log in python console:

      ReferenceError: the object 'c4d.documents.BaseDocument' is not alive

      By the way, this is similar behavior you notice when clicking on [+] button 0dd7ae71-413a-4cf6-b981-b42ca06e488b-image.png multiple times: it kills currently active empty document and activates new empty document instead.

      There're multiple solutions for you depending on what are your intentions with this script:

      If you only need baked object inserted to currently active document, there's no need in attaching your temporary document to cinema with the InsertBaseDocument() function If otherwise you need the temporary document to be inserted to cinema, consider attaching it after you insert cache to the old document. If you're attaching temp_doc to cinema only for debugging purposes, you can early exit your script to not let it go to the insertion step. Another option could be to "touch" original document (e.g. by inserting c4d.Onull object at the beginning of the script and removing it in the end).

      Cheers,
      Ilia

    • J

      ToolData.MouseInput() how to get right mouse click?

      Cinema 4D SDK
      • python • • JACK0319
      3
      0
      Votes
      3
      Posts
      624
      Views

      J

      @i_mazlov
      Hi,
      thanks for letting me know that.

      cheers~

    • J

      how to close c4dpy inside a script?

      Cinema 4D SDK
      • python • • JACK0319
      3
      0
      Votes
      3
      Posts
      671
      Views

      M

      Hello @JACK0319,

      without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • J

      I have developed an open-source user interface framework based on UserArea.

      General Talk
      • python • • JACK0319
      3
      5
      Votes
      3
      Posts
      1.2k
      Views

      DunhouD

      @JACK0319 Great work !

      I have been using ualib for some plugins and worked very well for whatever a beginner or experienced programmer , It's definitely worth trying it 👍

      0cf6ade8-8bae-4cd8-96f0-ff3f143c1306-image.png

    • J

      How can i get full chinese characters using userarea BFM_INPUT_ASC

      Cinema 4D SDK
      • python • • JACK0319
      3
      0
      Votes
      3
      Posts
      447
      Views

      J

      Hi @ferdinand ,

      First of all, I apologize for my poor explanation.

      I ran into an unexplainable situation, but your example solved my problem nicely.
      I couldn't get consecutive characters because I mistakenly called the self.GetInputState(c4d.BFM_INPUT_MOUSE, msg.GetInt32(c4d.BFM_INPUT_CHANNEL), msg) method and it would interrupt getting the original input.

      now I have solved the problem. Thank you very much you guys are the best!
      Cheers~

    • J

      It seems that the scroll group has a bug in the R26 version. When the doc is refreshed, it will automatically change its position?

      Bugs
      • python s26 • • JACK0319
      5
      0
      Votes
      5
      Posts
      1.0k
      Views

      ferdinandF

      Hello @jack0319,

      Yes, this is a bug. I had to do some digging first (debug against c4d) to find out what is going wrong here. It seems like this is a bug in the scroll group gadget. I was unable to pinpoint what is going exactly wrong, but when a new document is created, the scroll group position is set again, because Cinema 4D is reinitializing its layout. You currently cannot do anything about this. I have filed a bug report on our bug tracker and will update this thread when the bug has been fixed.

      We cannot make any guarantees regarding an ETA and considering that this is a negligible impact bug, it could take multiple revisions until the bug is fixed.

      Cheers,
      Ferdinand