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
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Maxon Developers Forum
    2. Tags
    3. 2024
    Log in to post

    • All categories
    • O

      How to gracefully obtain the number of targets in a constraint tag?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024 windows
      3
      1
      0 Votes
      3 Posts
      1k Views
      O
      @i_mazlov This is very useful as it helps avoid manually inputting hard-coded index values! Thank you, and have a great day!
    • S

      Retrieving a shader from a LayerShaderLayer

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows c++ 2024
      12
      0 Votes
      12 Posts
      3k Views
      S
      Hi Ferdinand, That’s great, really very helpful, thank you. I’m glad my code was right in principle even if it didn’t work! I would never have guessed the layer returned a void pointer. That should now work perfectly and do exactly what I need. Thanks again for taking the time to look into this, very much appreciated. Cheers, Steve
    • O

      How to hide an object's native attributes

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows 2024 python
      3
      1
      0 Votes
      3 Posts
      1k Views
      O
      @i_mazlov Thank you
    • Q

      When exporting FBX using c4dpy.exe, there is no texture or material information for the material

      Watching Ignoring Scheduled Pinned Locked Moved Bugs python 2024
      6
      0 Votes
      6 Posts
      3k Views
      i_mazlovI
      Hi @qq475519905, You issue is likely a bug in the material export code, I've created a ticket (ITEM#530704) in our internal bug tracking system. Thank you for reporting the issue! Cheers, Ilia
    • kangddanK

      How to Undo Switching Between Modes?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows 2024 python
      10
      0 Votes
      10 Posts
      3k Views
      B
      @ferdinand said in How to Undo Switching Between Modes?: Well, just move the code which switches the mode to the end of your code when it is only cosmetic anyways. As I said above, a sensible way to use SetMode is when you want to leave the user in a state where he or she can continue working right away. But you can then just run all your code, check if everything went fine and then set your code. Otherwise you never set the mode, and therefore also have nothing to revert. It's a matter of workflow. It's not simply for checking the code that it's working properly. It's about a workflow. The workflow in the example is Select some mesh components, run the command. It generates something for you and switches the mode for you. If you selected the wrong components, you'd undo and try it again. But the undo won't put you back in the component mode. The issue is that that part of the command is not undoable so it's does hinder the workflow just a bit. I'm not necessarily advocating that it should be undoable or anything like that, just explaining the reasoning in this example and the value if it were undoable.
    • DunhouD

      How to simulate "Cappucino" behavior?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows python 2024
      5
      0 Votes
      5 Posts
      1k Views
      ferdinandF
      PS: I would test this on heavy scenes with a lot of animations, to see if you get at least one data point for each frame (or whatever value you would consider acceptable).
    • F

      How to SetKeyframeSelection for Subfield

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK 2024 python
      5
      1
      0 Votes
      5 Posts
      1k Views
      F
      Thanks again.@i_mazlov I haven't studied C++ yet, but I'm glad to know that it's achievable with C++.
    • DunhouD

      Can I convert a BaseBitmap into a Image file in memory?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows python 2024
      3
      0 Votes
      3 Posts
      761 Views
      DunhouD
      Hey @ferdinand , oops, I have an impression of this topic and tried to recall it, but I couldn't find any keywords in my mind at the time. I must have gone crazy. And the key is the GetData(), I have no concept of file composition and did not realize that what is returned here is the data required for an image file. Thank you very much. Cheers~ DunHou
    • H

      GetChildren into an InExcludeData

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK 2024 python
      3
      0 Votes
      3 Posts
      764 Views
      H
      Thank you so much @i_mazlov . I'm still new to this and your reply is extremely helpful. Thanks again! Apologies for the double post. I wanted to completely remove the old post since I kinda spammed too many replies on it while I was figuring out what was wrong. Appreciate the help. Have a good day!
    • F

      How to change the value here using python

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK 2024 python
      8
      1
      0 Votes
      8 Posts
      2k Views
      F
      @ferdinand Thanks so much for such a detailed response. Learned a lot. My problem is solved. Thank you very much.
    • justinleducJ

      Baking normal in Object space: Bake Material Tag V.S. BakeTexture()

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows c++ 2024
      4
      2
      0 Votes
      4 Posts
      1k Views
      i_mazlovI
      Hi @justinleduc , Great to hear your issue was resolved! Special thanks on sharing your solution with the community! Regarding compiling issues you had: Error C2440: <function-style-cast>: cannot convert from AutoAlloc<ColorProfile> to GeData The AutoAlloc wrapper is just a convenient wrapper for a raw pointer. Hence, to fix your issue you just had to dereference the pointer: CheckState(colorProfile); settings.SetData(BAKE_TEX_COLORPROFILE, GeData(*colorProfile)); Cheers, Ilia
    • kangddanK

      How to Use Button Properties in an XPresso Python Node?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024 windows
      3
      1
      0 Votes
      3 Posts
      773 Views
      kangddanK
      @ferdinand Thank you !
    • E

      c4dpy -g_encryptPypFile fails: cannot find pyp file - plugin registration failed

      Watching Ignoring Scheduled Pinned Locked Moved Bugs python windows 2024
      11
      0 Votes
      11 Posts
      4k Views
      E
      @ferdinand Wow, thanks a ton for that! Our workflow was working just fine without c4dpy, so I didn't get to check the forum again, but this is very nice. Happy new year!
    • D

      Volume Builder GetInputObject returns something different?

      Watching Ignoring Scheduled Pinned Locked Moved Bugs 2024 c++ macos
      5
      0 Votes
      5 Posts
      2k Views
      D
      Thanks for the info! Dan
    • S

      How do I create a Plugin Identifier?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK windows python 2024
      14
      0 Votes
      14 Posts
      2k Views
      ferdinandF
      Hey @shir, good to hear that you solved the issue. Maybe NodeBB has an issue with the specific (top level) domain your mail handle was under? I just checked the logs and this is the event for the second registration mail that has been sent out (I edited your mail handle for privacy reasons). I.e., this is the one I manually invoked. There is another event for your actual registration. As far as NodeBB is concerned, it seems to be convinced that it successfully sent these mails. { "confirm_code": "dbcc0d6c-8646-4191-9975-badc1c7035f2", "email": "[email protected]", "subject": "Welcome to PluginCafé", "template": "welcome", "timestamp": 1751883962965 } NodeBB can be a bit buggy from time to time but that it fails to send a mail and then creates an event for successfully sending it, would be a bit odd. I will have an eye on this. Cheers, Ferdinand
    • H

      Xpresso & Pyhton - Convert Link List (Hierarchy Node) to In-/Exclusion

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024
      8
      1
      0 Votes
      8 Posts
      2k Views
      i_mazlovI
      Hi @hoffwerr , Please check our Support Procedures about consolidating consequent answers in a single posting. Please also do not duplicate your threads! I assume this question was answered in your second thread: GetChildren into an InExcludeData. Cheers, Ilia
    • E

      Importing/loading sound file to scene via Python

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024 windows
      4
      1
      0 Votes
      4 Posts
      998 Views
      i_mazlovI
      Hi @ezeuz, Great to hear you've figured it out and thanks for sharing the solution with the community! Cheers, Ilia
    • mikeudinM

      2024.4 update makes CheckDirty error for ObjectData plugin Fieldlist

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python macos 2024
      5
      0 Votes
      5 Posts
      2k Views
      i_mazlovI
      Hi @mikeudin , To me it sounds pretty much like this issue here: issue with inserting fieldlayers in r2024, particularly after I couldn't reproduce this issue with the internally available next version of cinema. Cheers, Ilia
    • mikeudinM

      Memory Leak? How to fix loosing memory with python generator?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python macos 2024
      5
      0 Votes
      5 Posts
      2k Views
      M
      Hi sorry for not answering this topic earlier, I finally found some time to investigate and sadly there is nothing you can do in your side, this memory leak is coming from the Illustrator Importer and can be big, since all the points and tangents of the file are leaking. A fix will be available in the next update. Thanks for the report ! Cheers, Maxime.
    • O

      Python equivalent of the Xpresso node "Get nearest point on spline"?

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python 2024
      6
      0 Votes
      6 Posts
      2k Views
      O
      Thanks a LOT @ferdinand and @mikeudin , for sharing your insights and suggestions! They are definitely valuable and am sure will come in handy in the future!!!