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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. mocoloco
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 62
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by mocoloco

    • mocolocoM

      Can't get a correct rendering in picture viewer of the current scene running my TAG plugin while it works in viewport

      Cinema 4D SDK
      • 2023 2024 macos python • • mocoloco
      9
      0
      Votes
      9
      Posts
      2.2k
      Views

      i_mazlovI

      Hi Christophe,

      Please note our Support Procedures, namely:

      We cannot provide support for third party libraries

      "It doesn't work" is not a support request and we cannot debug your code for you, but instead provide answers to specific problems.

      From my personal point of view, you need to reduce your setup as far as possible while still being able to reproduce the bug:

      Determine which one of your 2 tag plugins causes the issue Cut off unrelated functionality of your plugin that has nothing to do with the issue Figure out the specific function or line that causes the issue Search the forum if this issue was already discussed If not, create an example code snippet that highlights your issue Post your specific question and the example code snippet in a separate thread with a meaningful title

      Cheers,
      Ilia

    • mocolocoM

      Struggling on SetParameter for OLight

      Cinema 4D SDK
      • python s26 • • mocoloco
      4
      0
      Votes
      4
      Posts
      845
      Views

      mocolocoM

      Hi @m_adam,

      Thanks a lot for the flags, it does work as expected now.
      Are c4d.DESCFLAGS_GET_NONE and c4d.DESCFLAGS_GET_0 similars?

      Cheers,
      Christophe.

    • mocolocoM

      Back on "message after tag delete" post

      Cinema 4D SDK
      • python s26 sdk • • mocoloco
      5
      0
      Votes
      5
      Posts
      743
      Views

      mocolocoM

      Hi @ferdinand,

      Thanks a lot one more time for all the detailed examples and informations.

      I finally opt to a data container of the node, mostly due to the fact that the hooks are volatile and need to be set all the time. I also ran some tests with globals without having encounter issues, but indeed you need to be careful when handling this approach.

      Cheers,
      Christophe

    • mocolocoM

      Can REAL MIN / MAX value be changed on Init?

      Bugs
      • 2023 python s26 sdk • • mocoloco
      20
      0
      Votes
      20
      Posts
      3.1k
      Views

      mocolocoM

      Hi there,
      Was the issue fixed on R2023 or R2024?

      Thanks,
      Christophe

    • mocolocoM

      [SOLVED] ARROWBUTTON resource not accessible for Python?

      Cinema 4D SDK
      • • • mocoloco
      5
      0
      Votes
      5
      Posts
      521
      Views

      ferdinandF

      Great to hear! One thing I forgot to mention:

      For ICONID1 XXX and ICONID2 YYY you can use any of the built-in icon IDs as listed here. When you want to use your own icons, you must make sure the icon IDs are registered before the node which is using them in its description. Simply put the c4d.gui.RegisterIcon call before the RegisterXXXPlugin call of the plugin using them.

      Cheers,
      Ferdinand

    • mocolocoM

      Timeline playing - MSG or method to get it?

      Cinema 4D SDK
      • 2023 python s26 • • mocoloco
      3
      0
      Votes
      3
      Posts
      403
      Views

      mocolocoM

      Hello @m_adam,

      Thanks a lot, it works like a charm!

      Have a good day,
      Christophe

    • mocolocoM

      Does XRef or XRef simple are now accessible with Python?

      Cinema 4D SDK
      • 2023 python s26 • • mocoloco
      7
      0
      Votes
      7
      Posts
      1.1k
      Views

      ferdinandF

      Hey @mocoloco,

      Should, that's why I asked.

      Yeah, that is not the style of the classic API, there are only little error messages and things like that. What you can also do, is use the return value of SetParameter, a boolean. It will be False when setting the parameter failed.

      I used 'Ge' to design all [...]

      Eh, I understand, you mean from GeDialog, or what? I think it just stands for GenericDialog, it also pops up in thing like GeListNode or GeClipMap. There are some really old entities in the classic API and naming conventions were different then 😉 Ge is at least not a name for interface gadgets in our APIs.

      Cheers,
      Ferdinand

    • mocolocoM

      [Solved] How to setup a CTrack on TAG plugin UI slider? [with extended details]

      Cinema 4D SDK
      • python • • mocoloco
      9
      0
      Votes
      9
      Posts
      6.5k
      Views

      mocolocoM

      Good morning @ferdinand!

      I modified the whole code to always do my changes inside TagData.Message now instead of doing them in TagData.Execute, which should prevent any crash - even if I didn't got one, it seems far better to stick on the good rules and habit.

      Have a good day!
      Christophe

    • mocolocoM

      How to Access the Values of GeDialog Gadgets

      Cinema 4D SDK
      • s24 r25 python • • mocoloco
      2
      0
      Votes
      2
      Posts
      309
      Views

      ferdinandF

      Hello @mocoloco,

      thank you for reaching out to us. I have forked your question from How to Highlight a Button since it is a new question which does constitute a new topic. I am also currently on vacation which means that you will have to address the rest of the team to get support in a timely fashion (addressing just me and hiding your question in an older topic was probably what got your question being overlooked).

      About your question(s):

      You can find out more about dialog resources, i.e., defining a dialog in a file and not programmatically, in Resource Files Manual and Dialog Resource. Both manuals are part of our C++ documentation but do translate quite directly to Python since resource files are mostly a language agnostic topic. It also remains unclear to me if you actually want to define a dialog or a node since *"using .RES" does not distinguish the two. In either case the resource snippet I did post in the other thread could be used as a template for both cases. I am also not quite sure how the second part of your question is meant. You usually do react to dialog input events in GeDialog.Command. In a node you would have to indeed listen in NodeData.Message() as pointed out by yourself. In a dialog the value would be then attached to the dialog and in case of a node to the node. I.e., in the case of the muscle object thingy polling the quicktab gadget could look like this: Message(self, node, mid, mdata): """Polls a quicktab gadget for the hypothetical muscle object case. Args: node (c4d.BaseList2D): The node to which the message has been sent. mid (int): The message id. mdata (any): The message data. In case of description messages usually a `dict` in Python. """ # The conditioning to a specific message/event type is optional, but # should be in your case probably MSG_DESCRIPTION_POSTSETPARAMETER. if mid == c4d.MSG_DESCRIPTION_POSTSETPARAMETER: # Unpack from which element the message has been sent. eid = mdata["descid"][0].id # This has been sent by the quicktab gadget. if eid == c4d.ID_CA_MUSCLE_OBJECT_STATE: # Get the node state of the parameter which has that quicktab GUI # and do different things based on the state. state = node[c4d.ID_CA_MUSCLE_OBJECT_STATE] if state == c4d.ID_CA_MUSCLE_OBJECT_STATE_RELAX: # ... elif state == c4d.ID_CA_MUSCLE_OBJECT_STATE_COMPRESSED: # ... # ... return True

      For a more precise answer you should post code or a more precise description of what you are trying to do. And you should also address the rest of the team since I am still going to be on vacation for a few days.

      Cheers,
      Ferdinand

    • mocolocoM

      How to detect a document switching?

      Cinema 4D SDK
      • python r23 s24 sdk • • mocoloco
      5
      0
      Votes
      5
      Posts
      680
      Views

      ferdinandF

      Hello @mocoloco,

      without further questions or replies, we will consider this topic as solved by Monday, the 30th and flag it accordingly.

      Thank you for your understanding,
      Ferdinand

    • mocolocoM

      Getting the proper formatting/display on .RES

      Cinema 4D SDK
      • macos python r23 sdk • • mocoloco
      8
      0
      Votes
      8
      Posts
      1.1k
      Views

      M

      Correct, thanks for poitning it I will add a task to improve documentation of Custom GUI 🙂

    • mocolocoM

      Is ObjectIterator() parsing depreciated under R23 and higher?

      Cinema 4D SDK
      • • • mocoloco
      5
      0
      Votes
      5
      Posts
      620
      Views

      ferdinandF

      Hello @mocoloco,

      without any further replies or questions, we will consider this thread as solved by Thursday and flag it accordingly.

      Thank you for your understanding,
      Ferdinand

    • mocolocoM

      Select the object on which the plugin Tag is associated

      Cinema 4D SDK
      • • • mocoloco
      5
      0
      Votes
      5
      Posts
      607
      Views

      mocolocoM

      I changed my code to use BaseDocument.SearchObject(self, name) and it is working perfectly without compromising anything.

      Thanks again,
      Cheers,

      Christophe

    • mocolocoM

      c4d.gui.QuestionDialog() in Python plugin makes c4d crash every time

      Cinema 4D SDK
      • • • mocoloco
      6
      0
      Votes
      6
      Posts
      771
      Views

      mocolocoM

      Wow, I couldn't have though that I have to watch c4d.MSG_DESCRIPTION_POSTSETPARAMETER.
      I'm starting to understand the way to use threading as well, thanks a lot for the help and tips, all is working perfectly now.