• Some questions about PSD correction

    r19
    7
    1
    0 Votes
    7 Posts
    2k Views
    chuanzhenC
    @m_adam Thank you for your team's reply. I will share my exploration in this post in the future.
  • Please help - Python script

    python
    3
    1 Votes
    3 Posts
    961 Views
    a_blockA
    Hi, I'm afraid @Cairyn already contributed everything we could. We need to leave this to the community. Sorry. I have moved this to the General Programming & Plugins Discussions category, as I don't regard it as a very C4D specific question. Please, correct me, if I'm wrong. Cheers, Andreas
  • RestartApplication() / c4d.RestartMe()

    c++ python classic api
    4
    0 Votes
    4 Posts
    955 Views
    a_blockA
    Sorry, in contrary to what I had written here before, we will not add RestartApplication() to the documentation. These calls have certain intricacies, so their use will be at own risk. This is now based on an answer from our development. Cheers, Andreas
  • Python new point indices after points have been deleted

    python
    5
    0 Votes
    5 Posts
    1k Views
    a_blockA
    I forgot to turn this thread into a question. Done now, and as I regard the last post as a "solved" message, I also marked it as solved. Please, don't hesitate to turn back to unresolved, if I was wrong.
  • CheckDropArea documentation "typo" ?

    r19 r20 c++
    2
    0 Votes
    2 Posts
    608 Views
    M
    Hi @C4DS, thanks a lot for your message. Documentation tag have been added. Drag and Drop Manual, changed to: GeDialog Drag and Drop GeUserArea Drag and Drop GUI Message Drag and Drop Links will work correctly in the next update of the doc. However you are right, the code sample in the old manual was wrong. It should have been if (CheckDropArea(DLG_GROUP, msg, true, true)) {} Note, you could also create your own function as demonstrated in the AsyncTest Example. Cheers, Maxime.
  • Bitmap scaling up

    c++ r19 r20
    3
    0 Votes
    3 Posts
    721 Views
    M
    Thanks, @C4DS for pointing out this issue. It will be fixed in the next version. Cheers, Maxime.
  • Linking something to a handle

    python r20
    9
    0 Votes
    9 Posts
    2k Views
    a_blockA
    Nice, congrats I have to admit, I forgot to turn this thread into a question. I did so now and I also marked it as solved, as your last post seems to imply. Cheers, Andreas
  • Clear LinkBox field

    python r19 windows
    3
    0 Votes
    3 Posts
    1k Views
    A
    Hi Andreas, Thank you very much! It works like a treat and I appreciate your thorough explanation! Happy Friday! Andre
  • Project tool and non-cpp file extensions

    4
    0 Votes
    4 Posts
    970 Views
    S
    That's great, Andreas. Thanks! I'll kludge on until then.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • UserArea and EditText

    c++ r19 r20
    4
    0 Votes
    4 Posts
    1k Views
    C4DSC
    Thanks to both of you. I originally thought solution 2 would be the way to go, and have proceeded in that direction ... but the more I look at the result the more I am getting convinced that this wasn't the right approach to deal with the issue. So, I am still open for solution 1. But will try yet another solution, inspired by the reply from WickedP. I intentionally didn't include a solution where I would create iCustomGui / GeUserArea for each separate gadget. As I thought this would result in drag and drop to only work when hovered over the separate gadgets, and failing when mouse would hover over the space between these gadgets. But using a global drag and drop function on the dialog itself (instead of all separate gadgets) will actually provide for a complete solution. EDIT: Set the state of this post to "Solved". In the end I went for a complete different solution. Not using any GeUserArea at all. As such, I could simply position and use EditText the way it was intended.
  • Re-build plugin for R20 - missing file "delegate.h"

    6
    0 Votes
    6 Posts
    2k Views
    r_giganteR
    Hi Steve, having the USE_MAXON_API being defined - actually using C4D=true in projectdefinition.txt - is required in order to be sure that all the cinema.framework classes are properly compiled. Although there could be situations where some cinema.framework classes can work without that define, we highly discourage this approach since you can end up in situations where the code compiles until you include that specific class which indeed needs that define (which it's already happening in that case). If specifying C4D=true actually brings too much pain, please open a new thread and let's proactively discuss the issues your code is facing and let's get rid of them. Best, Riccardo
  • Plugin crashes on Windows 10

    r19 c++ windows
    2
    0 Votes
    2 Posts
    688 Views
    a_blockA
    Hi Florian, sorry, to hear about this issue. To be honest, I can hardly believe that it's those parameters or sliders causing a crash on plugin registration. I'm more thinking of some memory maybe being trashed beforehand. But in the end, it doesn't matter so much, what I do believe or not or what I might suspect, we want to assist you in solving this riddle. As we have no evidence for issues in the described area, nor are we able to reproduce it via a simply example, I'd like to ask you for some more information. Could you maybe provide us with a stack trace, when the crash happened? Either from within Visual Studio or via the crash reporter (in the latter case, please notify me here, I need to look out for the report). I have turned this thread into a question. Cheers, Andreas
  • GlProgramFactory not documented

    c++ r20 sdk
    3
    0 Votes
    3 Posts
    750 Views
    a_blockA
    Hi Frank, actually I think, all the examples on GLProgramFactory have been there for quite I while. I just checked and they were already available in Cinema 4D R13, maybe even earlier (there are actually quite a few, see GitHub). Unfortunately that is all we have on this topic, chances are pretty bad, we can shed any additional light on this topic. I turned this thread into a question. Cheers, Andreas
  • Sampling the falloff of a mograph effector? (python/R19)

    4
    0 Votes
    4 Posts
    2k Views
    jenandesignJ
    @m_adam Wow, this is truly great. What a fantastically written response, I really appreciate it! Learning a bunch from this example, way more than I asked for. Thanks again Jenny P.S. if only the py4d documentation had examples like this, we would all be better programmers
  • Invert normals only for selected polygons

    r20 python
    4
    1
    0 Votes
    4 Posts
    3k Views
    J
    Thank you for the kind help! @m_adam: The plug-in you have linked is very useful. I could fix some problems with the "Select polygons by normal direction" function. Working with badly constructed meshes is no fun job either way. Kind regards, Julien.
  • string format

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    M
    Hi @Jvos, First of all, (no worry at all) I would like to remind you to read How to Post Questions especially the part about categories. Since your topic is related to Cinema 4D please next time create a topic within cinema 4d development. (I've moved it). Regarding your issue, pretty much all parameters in Cinema 4D are stored in a BaseContainer. A BaseContainer is a dictionary which links an ID (Int) to a Data. When you are doing Object[Something] you access the value within this BaseContainer. If you write in the console c4d.REDSHIFT_LIGHT_PHYSICAL_INTENSITY, it will print you the ID of this parameter. Then to get the value of a parameter which is stored in the object's BaseContainer, you don't have to pass a string, but the ID, which is registered with a SYMBOL NAME because it's easier to remember than an arbitrary number (In some case there is no SYMBOL equivalent for an ID). So as @mikeudin suggested the eval function is the right way to go, or you can directly store the ID in your list. attributes = [c4d.REDSHIFT_LIGHT_PHYSICAL_INTENSITY, c4d.REDSHIFT_LIGHT_PHYSICAL_EXPOSURE] Finally, there is no official C4D slack/discord or chat. Cheers, Maxime.
  • Rotate selected polygons

    r20 python windows
    3
    0 Votes
    3 Posts
    813 Views
    P
    Hi Andreas, Ok, so I have to rotate the points to rotate a polygon. I thought so. That is why I assumed that when I can rotate points, I can rotate polygons. Thanks. Regards, Pim
  • get lamp attributes?

    Moved
    7
    0 Votes
    7 Posts
    2k Views
    a_blockA
    Hi, @Jvos it looks like your question got answered. Afterwards you deleted this thread. I'd like to ask you not to do so. This forum is all about sharing knowledge. There are no stupid questions and nothing to be ashamed about. Every answered question might help a future developer. I have moved this thread into the Cinema 4D Development category. Cheers, Andreas
  • Mosplines - Iterate Width

    Moved python
    14
    0 Votes
    14 Posts
    3k Views
    a_blockA
    Hi, I'm sorry for getting back so late. My examples should be easily adapted to random values. Our Python SDK does not directly provide means for random numbers, but Python's random module should do the trick just fine. Cheers, Andreas