Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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. ThomasB
    3. Topics
    • Profile
    • Following 1
    • Followers 0
    • Topics 32
    • Posts 110
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by ThomasB

    • ThomasBT

      Maxon API for Python

      Cinema 4D SDK
      • python 2025 windows • • ThomasB
      3
      0
      Votes
      3
      Posts
      443
      Views

      ThomasBT

      @ferdinand
      Thank you for your detailed explanation, it shed some light on the whole matter for me.

    • ThomasBT

      TempUVHandle always None! Why?

      Cinema 4D SDK
      • r21 python windows • • ThomasB
      3
      0
      Votes
      3
      Posts
      592
      Views

      ThomasBT

      @i_mazlov
      Thank you very much for the hint with the texture view and for the helpful links.
      The second thread I have already read, but was not able to find the solution so far. I study these examples. Thank you.

    • ThomasBT

      Dynamically adding parameters in tag plugin - description is not refreshing

      Cinema 4D SDK
      • r23 2023 2024 python windows • • ThomasB
      3
      0
      Votes
      3
      Posts
      791
      Views

      ThomasBT

      @ferdinand
      Thanks a lot Ferdinand for your time and effort. It is always admirable how carefully and thoroughly you answer many questions.
      At first it was often difficult to understand and follow your code examples...now it is a little easier.
      Thanks for that.

      I found out that the following method also does the job:

      c4d.SendCoreMessage(c4d.COREMSG_CINEMA, c4d.BaseContainer(c4d.COREMSG_CINEMA_FORCE_AM_UPDATE), 0)

      Sorry for the second question about why this

      buttonDesc[c4d.DESC_FITH] = True buttonDesc[c4d.DESC_SCALEH] = True

      in the GetDDescription method are not working. I thought this is a follow-up question.
      I will open another topic for that.

    • ThomasBT

      2024.4.0 crashes when setting key-values

      Bugs
      • 2024 python windows • • ThomasB
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      M

      Hi @ThomasB, sorry for the issue.

      This is going to be fixed in the next version of Cinema 4D. With that's said you can workaround the issue by using directly SetParameter like so:

      # key[c4d.ID_CKEY_PRESET] = 2 key.SetParameter(c4d.DescID(c4d.ID_CKEY_PRESET), 2, c4d.DESCFLAGS_SET_NONE)

      Thanks for the report !
      Cheers,
      Maxime.

    • ThomasBT

      Snapping to a specific position of an object plugin's object chain

      Cinema 4D SDK
      • windows r23 2023 2024 python • • ThomasB
      2
      0
      Votes
      2
      Posts
      575
      Views

      ferdinandF

      Hey @ThomasB,

      Thank you for reaching out to us. Without your code we cannot really help you, we are not the oracle of Delphi 🙂 There are many things which could go wrong in your plugin. But in general what you are doing is correct; add a dummy point object with your snap points to your cache, when you want to introduce special snapping points for your custom generator object. Snapping onto the points of the returned geometry should work out of the box (but snapping sometimes struggles a bit with deep caches).

      There is however only limited support for adding special snapping points, as it is not really intended to add you own snap logic in that manner. The snapping module both in Python and C++ does not allow you to implement your own snapping logic, you can just read some data.

      You should also keep in mind that the snapping is an older part of Cinema 4D which has its flaws. You should check if your problem also does occur when you try to snap onto the converted cache of your object (current state to object). If that is the case, you know it is not something your plugin does, but simply the fact that the snapping struggles with that specific geometry/scenario.

      Cheers,
      Ferdinand

    • ThomasBT

      How do I get the cache of a cloner in an ObjectData Plugin

      Cinema 4D SDK
      • 2023 2024 r23 r25 python • • ThomasB
      4
      0
      Votes
      4
      Posts
      894
      Views

      ferdinandF

      Good to hear!

    • ThomasBT

      Boole Object causes version 2024 to freeze

      Cinema 4D SDK
      • r23 2023 2024 python windows • • ThomasB
      3
      0
      Votes
      3
      Posts
      1.7k
      Views

      ThomasBT

      @ferdinand
      Hello Ferdinand,
      Thank you very much first of all.
      yes, you're right, I worked extremely sloppily with the SMC method, of course I'll take the threading into account and also work with a Temp Document.

      Regarding the problem itself, I can only say that reinstalling CINEMA 4D solved our problem.

      Cheers

    • ThomasBT

      Object Plugin - Generator Objects - Hiding the child objects in Editor View

      Cinema 4D SDK
      • windows r23 python 2023 • • ThomasB
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      ferdinandF

      Hey @ThomasB,

      That has nothing to do with the highlighting but with the fact that Maxime used incorrect links. developers.maxon.net/docs/ links will only work from outside of the forum. Inside the forum you currently have to use dvelopers.maxon.net/assets/docs/ as otherwise nodebb is trying to take over the routing. I am working on fixing that issue.

      I have fixed both links of Maxime.

      Cheers,
      Ferdinand

    • ThomasBT

      How to access the BaseContainer of an Command-Dialog

      Cinema 4D SDK
      • r23 2023 2024 python windows • • ThomasB
      5
      0
      Votes
      5
      Posts
      980
      Views

      ThomasBT

      @ferdinand

      This is a command, and you can c4d.CallCommand it, but that is all the control you have.

      thank you Ferdiand,

    • ThomasBT

      Tag plugin general issues (crash, threading, message)

      Cinema 4D SDK
      • r23 2023 python windows • • ThomasB
      4
      0
      Votes
      4
      Posts
      725
      Views

      ThomasBT

      @ferdinand

      Thank you Ferdinand for your leniency regarding the three questions..
      Will take note of that in the future.

      =====BaseTime=====
      Which just surprises me about the BaseTime problem is, that it worked in the Python tag. I didn't get an error message and the prototype worked very well.
      So I also tried instead of BaseTime int type value in the plugin, but it crashed. It confused me a bit. So I try your suggestion.

      # In the python tag it worked with int # starf_frame was an int frame = doc.GetTime().GetFrame(doc.GetFps()) - op[c4d.ID_USERDATA,start_frame]

      ====PoseMorph Symbol====
      Regarding the posmorph ID, I should have figured that out myself

      Thanks for your quick respond

      Tom

    • ThomasBT

      Difficulties to dedect the right Message Data

      Cinema 4D SDK
      • r23 2023 python windows • • ThomasB
      3
      0
      Votes
      3
      Posts
      730
      Views

      ThomasBT

      @ferdinand
      Many thanks for this detailed example, I'll try it out

      P.S.
      Oh my gosh, it's working perfectly. I decided to go the easiest way, just to check the dirtyness of the linked object.

      linkDirty: bool = link.IsDirty(c4d.DIRTYFLAGS_DATA)

      Many many thanks

      Thomas

    • ThomasBT

      Bug R23? Viewport Render Aborts with Physical Renderer

      Cinema 4D SDK
      • r23 python windows • • ThomasB
      4
      0
      Votes
      4
      Posts
      784
      Views

      J

      Hello @ThomasB ,

      without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly.

      Thank you for your understanding,
      Maxon SDK Group

    • ThomasBT

      Need help with Bend-Deformer in Object-Plugin

      Bugs
      • r23 2023 python windows • • ThomasB
      6
      0
      Votes
      6
      Posts
      1.6k
      Views

      M

      Hello @ThomasB,

      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.

    • ThomasBT

      description.SetParameter() Question

      Cinema 4D SDK
      • r23 2023 python windows • • ThomasB
      11
      0
      Votes
      11
      Posts
      1.6k
      Views

      ThomasBT

      @ferdinand

      At first I wanted to do it exactly like you recommended, but then I thought why, if you save 36 IDs, it's certainly more memory-efficient. And when you just rename it, you've already learned something again.

      Actually, I wanted to do it with separate IDs. But then I recognized that I need the exact same 3 parameters, just with other Labels. but since renaming was faster, I decided to do it. It's an update of the previous version of the plugin and it was easiest to just change the labels.
      I'll think about it, I've got time.

      Thank you because my English is not always the best, I sometimes find it difficult to read your texts. They are already very extensive in some cases. 🙂

      Good evening!

    • ThomasBT

      Plugin Update use "disklevel" or new PluginID

      Cinema 4D SDK
      • r23 python windows 2023 • • ThomasB
      3
      0
      Votes
      3
      Posts
      510
      Views

      ThomasBT

      @ferdinand
      thank you very much

    • ThomasBT

      Get the "Position" of a Polygon

      Cinema 4D SDK
      • • • ThomasB
      5
      0
      Votes
      5
      Posts
      1.1k
      Views

      i_mazlovI

      Hi James,

      You can use GetDeformCache() for that in place. The rest of the code would stay exactly the same, just add the following three lines before retrieving object points and polys:

      obj = obj.GetDeformCache() if not obj: raise RuntimeError("Couldn't retrieve objects deform cache")

      By the way, there's a great example that showcases the workflow with generators and deform caches: geometry_caches_s26.py

      Cheers,
      Ilia

    • ThomasBT

      Object-Plugin - Message() method POSTSETPARAMETER c4d.CallCommand(12147) - Freezing

      Cinema 4D SDK
      • windows python r23 • • ThomasB
      13
      0
      Votes
      13
      Posts
      1.9k
      Views

      ferdinandF

      Hey @thomasb,

      no worries, don't be too concerned about it. And you should not be ashamed, that was certainly not what I wanted to convey. "Every person his or her book", the second so called law of library science, is something I truly believe in. Everyone has valid information needs and we are trying to help users on their individual journey. You should not feel discouraged, we are and were all once in your place.

      But at the same time, I sometimes have to regulate a bit forum conduct as we, the Maxon SDK group, and other users are human too. And people tend to get confused, when they are being hit with a stream-of-conscious like threads were a user comments diary-style-like on his or her development state. It is not that I would not understand people are doing that. When one is in that situation, one is overwhelmed by the possible routes one can take, the amount of information to traverse. And verbalizing that does indeed help. But for someone who tries to help you or for people who later search for similar information, this "stream-of-conscious/diary" is then an obstacle rather than a help.

      So, sometimes I try to regulate both interests a bit. But as I said, please do not feel discouraged.

      Cheers,
      Ferdinand

    • ThomasBT

      Object Plugin : Sweep with 2 Splines - After MakeEditable just 1 spline

      Cinema 4D SDK
      • 2023 windows python r23 • • ThomasB
      4
      0
      Votes
      4
      Posts
      868
      Views

      ThomasBT

      @ferdinand
      Yes you are right, in relation to this the self.spline etc is unnecessary that could also be a normal local variable. Is correct.
      But basically if I load a profile spline in my init method, for example, I can already save it in such a variable. I need to be able to access it from anywhere in the class.
      But here it is totally superfluous....sorry

    • ThomasBT

      Dumb question: Can an Object Plugin inherit from existing modules

      Cinema 4D SDK
      • 2023 python r23 • • ThomasB
      2
      0
      Votes
      2
      Posts
      386
      Views

      ManuelM

      hi,

      well you cannot inherit from the Hair Object as you could from a class.

      What you can do is to load the description of the hair object or include it in your description, create the hair object internally and link your description parameters to the internal hair object. Probably add your own parameter in your description. Than inside GVO you could generate the hair object with those parameter and return the result of it.

      While this seems to be possible, there are probably a lot of issue you are going to face, be ready ^^

      Cheers,
      Manuel

    • ThomasBT

      Object Plugin doesn´t render with Physical Renderer

      Cinema 4D SDK
      • 2023 windows python r23 • • ThomasB
      11
      0
      Votes
      11
      Posts
      1.5k
      Views

      ThomasBT

      @manuel
      Thank you very much!