• Faster way of checking if dialog has closed?

    Cinema 4D SDK python
    8
    0 Votes
    8 Posts
    2k Views
    M
    @iluxa7k said in Faster way of checking if dialog has closed?: LP_c_long Long story short it's a pointer http://makble.com/the-story-of-lpclong, and I think the method provided by Zipit is the best one, since as he said there is no way to control the behavior of an external (from your plugin) GeDialog. Cheers, Maxime.
  • 0 Votes
    5 Posts
    585 Views
    M
    Hi Cayring this is indeed a bug I'm going to report them and fix them (both for BaseMaterial and shader) as soon as possible If you have other cases like that please report them. I set the topic as solved, I will bump this topic once the fix will be available. Cheers, Maxime.
  • Real Time or Live "Edge to Spline" Object?

    Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    520 Views
    B
    @PluginStudent and @m_adam The plugin from @noseman works. It works for now in my use case, but correct me if I'm wrong it cannot have a priority parameter because it is a generator (?). Regards, Ben
  • Identity of C4D objects in Python

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    1k Views
    CairynC
    @m_adam Thank you for the confirmation and the reading suggestions. Just for context, this is a general conceptual question and not connected to a specific code issue. I noticed the behavior while doing some test scripts with id() and is. It is worth noting that these Python properties need to be used carefully in concert with C4D objects. (I wouldn't exactly recommend using pointer comparisons in C++ either ) I will include an "advanced" chapter in my Python/C4D book to mention this.
  • Why are my Relative Transformation Values not 0?

    Cinema 4D SDK python r21
    11
    1
    0 Votes
    11 Posts
    951 Views
    P
    The source code of the C++ version of CompareFloatTolerant() is actually available in the frameworks\cinema.framework\source\ge_ieee.cpp and/or \frameworks\core.framework\source\maxon\general_math.cpp file of the C++ SDK. I assume the Python version just calls the C++ function.
  • GetLayerObjectRoot and GeListHead

    Cinema 4D SDK python r21 classic api
    8
    0 Votes
    8 Posts
    1k Views
    CairynC
    Thanks for the confirmation. I shall treat the extra link directions as nonexistent then
  • UI, Resource Descripion and all those .h, .str, .res

    Cinema 4D SDK
    11
    4
    0 Votes
    11 Posts
    2k Views
    intenditoreI
    Brah... Third time spent fighting with stupid typos! : @PluginStudent @zipit @r_gigante many thanks! I didn't assume you are using the same system inside the program and had no thought to take a look there! Seems adding the "," helped it. And, as I see, you must enumerate all the elements in your .h file, but though you can leave id blank. Thank you! %\
  • escape unicode characters in filepath

    General Talk
    7
    0 Votes
    7 Posts
    1k Views
    M
    Hi, @lasselauch as a rule of thumb with Python2.7 always store data as a Unicode string. Control your IO which means, for each, Input make sure you know the encoding in all cases by always calling .decode('utf-8') so you are sure to store a Unicode value and get an error if something went wrong at a loading time. Then output the content according to your need some need ASCII, some can work with unicode, but do the conversion on the fly, don't touch you stored Unicode data. For the francophone people, there is this fabulous article about unicode Encoding in Python for English I guess the best I found on this topic is A Guide to Unicode, UTF-8, and Strings in Python. Cheers, Maxime.
  • Online Activation with Vendor Licensing System

    Cinema 4D SDK python r21
    4
    0 Votes
    4 Posts
    675 Views
    M
    Hi, without further feedback, I'll set this thread as solved tomorrow. Cheers, Maxime
  • Materials don't accept Tags?

    Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    910 Views
    ManuelM
    hi, without futher feedback from you i'll set this thread to solved. Cheers, Manuel
  • c4d.utils.RangeMap clampval funkyness

    Cinema 4D SDK r20 python
    2
    0 Votes
    2 Posts
    280 Views
    ManuelM
    Hi, thanks a lot. I've opened a bug entry for that one. It will be fixed in a futur release. Cheers, Manuel
  • FontData BaseContainer IDs

    Cinema 4D SDK python r20
    4
    0 Votes
    4 Posts
    1k Views
    S
    @m_adam I still don't understand how to get the id of parameters? How do I know that this parameter has id 500?
  • get initial position in python tag

    Cinema 4D SDK r19 r20 r21 classic api python
    5
    1
    0 Votes
    5 Posts
    1k Views
    ManuelM
    hi, without further feedback i'll set this thread as solved tomorrow. Cheer, Manuel
  • 0 Votes
    11 Posts
    3k Views
    Tasos MagkafasT
    @m_adam Dear Maxime thanks for everything! But, unfortunally now that I almost finished this part I realized that all this scripting doen't give me the desired procedural result. It just changes the values once but if i change the values of the PARENT object the OBJECT_A (child) is not updated... Anyway I have to approach it in a different way. I think I should tag this thread as "SOLVED" and in case I need again help i create a new one. Please advise me Maxime. And for one more time THANK YOU both , Maxime and Zipit
  • Profiling Python Plugins

    Cinema 4D SDK r20 python
    13
    0 Votes
    13 Posts
    2k Views
    ferdinandF
    Hi, without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly. Cheers, Ferdinand
  • Batch Processor: plugin for python scripts developers

    General Talk
    5
    1
    4 Votes
    5 Posts
    2k Views
    mikeudinM
    @m_adam Thank you!
  • User Area and ScrollArea()

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    559 Views
    P
    Yes, I use the auto way. I thought that using ScrollArea() it would only display that part (no need to draw the other parts). So, fill the virtual UA once and then display parts of it using ScrollArea(). But if "you still need to draw completely the GeUserArea with all the DrawBitmap", there will be no speed benefit. I will try it under R21 and will read "Profiling Python Plugins". Thank you, Pim [image: 1586507628642-24fbc034-a80c-42f0-acb3-77deffeadaec-image.png]
  • Cannot write specific values to UVWTag

    Cinema 4D SDK r20 r21 c++ python
    6
    0 Votes
    6 Posts
    692 Views
    r_giganteR
    It's actually due to a lower number of bits used to store the floating value.
  • Update button

    Cinema 4D SDK python r20 r19 r21
    4
    1
    0 Votes
    4 Posts
    1k Views
    pyxelriggerP
    Thanks! seems to work well! the problem is that apparently it only runs on the tag, if I set the option as a UserData of my object, it doesn't work
  • 0 Votes
    3 Posts
    666 Views
    M
    While the method provided by Zipit Is fine, it is not 100% reliable. here how to achieve, unfortunately, the ELEMENT_Count value is hardcoded and no way for you to retrieve it. constraintTag = doc.GetActiveTag() targetCount = constraintTag[c4d.ID_CA_CONSTRAINT_TAG_PARENT_TARGET_COUNT] for i in range(targetCount): CONSTRAINT_ELEMENT = 10 # This is hardcoded targetId = c4d.ID_CA_CONSTRAINT_TAG_PARENT_TARGET_COUNT + i * CONSTRAINT_ELEMENT + 1 print(constraintTag[targetId]) Cheers, Maxime.