• EditText: intercept/discard keystrokes

    python r20 windows
    7
    0 Votes
    7 Posts
    1k Views
    M
    Thank you Maxime. My current solution looks pretty similar to yours and works . Implementing an own gadget is of course out of scope - I don't even get paid for that.
  • Projecttool - avoid updating all projects

    15
    0 Votes
    15 Posts
    2k Views
    a_blockA
    Here's an older blog post about VS property sheets. Still for VS2010, but the principle is still the same. Sharing project properties in Visual C++
  • Ovolumeloader

    r20 c++ sdk
    3
    0 Votes
    3 Posts
    854 Views
    kbarK
    Thanks Sebastian. I did not realize it was a generator. Couldn't find it mentioned in the docs. However I was searching for VolumeLoader in the docs and on here, and I think the official docs searching system doesn't always return the results. Anyway, all good now. Thanks again.
  • InitResourceBitmap issues

    3
    0 Votes
    3 Posts
    669 Views
    merkvilsonM
    Thanks, Andreas! I was looking for interface_icons_2x for a while
  • c4d.PrefsLib_OpenDialog is not working.

    python r20
    3
    0 Votes
    3 Posts
    632 Views
    merkvilsonM
    @m_adam Thanks, Maxime! You solved yet another issue.
  • Force fields for dynamics simulations

    c++
    6
    0 Votes
    6 Posts
    1k Views
    r_giganteR
    Hi Nikolay, thanks for following up. I've forwarded the idea request to the development department responsible for. After evaluating they'll decide if and when to schedule this API addition in our release cycle. Best, Riccardo
  • Detect single click

    python
    4
    0 Votes
    4 Posts
    794 Views
    r_giganteR
    Hi merkvilson, thanks for following up. With regard to the MSG_EDIT it's actually dispatched just when double-click event is executed by the user. What is then executed depends on what is implemented in the NodeData::Message() method when the MSG_EDIT message is received in a certain NodeData. An example on how the double-click event in the ObjectManager works can be found via the Physical Sky, where, double clicking on the icon in the OM, just opens the Sky Manager UI. Best, Riccardo
  • Timeline control via OSC and EventAdd doesnt update the scene

    Moved python
    2
    0 Votes
    2 Posts
    548 Views
    a_blockA
    Hi, welcome to the Plugin Café forum Before answering your question, I'd like to ask you to please read "Read Before Posting". No worries, I have turned this thread into a "question", added tags and moved it to the Cinema 4D Development category for you. I'm a bit surprised it's supposed to work on Mac. The thing is, SetTime() just sets the time of the document, but it does not implicitly trigger a re-evaluation or execution of the scene. For this you need to use ExecutePasses() after calling SetTime(). There's some more information on this in our C++ SDK manuals. I know, we are talking Python here, but maybe it's interesting anyway: BaseDocument manual -Time. Cheers, Andreas
  • BaseContainer::SetMemory() question

    c++ r19 r20
    6
    0 Votes
    6 Posts
    1k Views
    a_blockA
    Hello Roger, my thought was, if you allocated buffer properly via NewMem (or one of its siblings), then you should be able to use it directly. But as Cinema 4D will do an internal copy and destroy the passed buffer, you'd need to do something like this (pseudocode): SetMemory(buffer) buffer = GetMemory() // to get the pointer to the buffer owned by Cinema // ... and then in the end, if you need to free the memory yourself and can't rely on the memory being destroyed on destruction of the BaseContainer buffer = GetMemoryAndRelease() Free(buffer) Just thinking and probably you have thought of this option anyway. Cheers, Andreas
  • Function 12144 (connect objects)

    python
    9
    0 Votes
    9 Posts
    2k Views
    Passion3DP
    Thank you for all these details Maxime I solved the problem with a small loop that checks if the object has been converted or not The test reports I got are all positive My plugin will therefore remain compatible from R13 to R20:)
  • Export selected objects to separate files

    Moved
    8
    0 Votes
    8 Posts
    5k Views
    K
    Hi @m_adam, thanks for you correction and advice, it's really usefull for me. I'm learn python just couple month and not sure in my code yet. yeah i'm missed this mistake full_dirpath = normpath(join(dirpath, (doc.GetActiveObjects(0)[0]).GetName() + ".obj")) Thanks one more time, always good to have help and support!
  • Add tooltip to subcommand

    python windows r20
    3
    0 Votes
    3 Posts
    705 Views
    B
    Thanks for confirming my suspicion
  • Accessing Mesh Vertex Data

    3
    0 Votes
    3 Posts
    717 Views
    C
    @m_adam Sorry about the gaffe. I make sure for it not to happen again. Thanks for your response.
  • Pipeline integration

    Moved
    8
    0 Votes
    8 Posts
    2k Views
    M
    Because you didn't insert the actual renderer: InsertVideoPost() BaseVideoPost
  • Getting points and edges of parametric objects

    python
    5
    0 Votes
    5 Posts
    1k Views
    K
    Nevermind. I figured it out It was my mistake in the code. I made myself a helper function to initialize the ViewportSelect object, and I was initializing it with the wrong object. That's where the runtime error came from. Thanks anyway.
  • Get points within a given radius

    Moved
    4
    0 Votes
    4 Posts
    824 Views
    M
    You may want to consider to use scipy. You have to do indexing once, but can the efficiently iterate over the points within a desired radius with the functions that come with the module.
  • Incorrect file structure

    r20
    6
    0 Votes
    6 Posts
    3k Views
    a_blockA
    Hi Roger, that's good news! Cheers, Andreas
  • Open GeDialog on second screen

    python windows r20
    3
    0 Votes
    3 Posts
    710 Views
    B
    Ok, thanks!
  • Drawing into Rendering

    r20 python windows
    7
    0 Votes
    7 Posts
    1k Views
    r_giganteR
    Hi @rownn, thanks for having provided further details. Assuming that you're aware of the limitation in terms of appearance that you might face by using the functionalities delivered by GeClipMap, the only way to go to access a bitmap which is supposed to contain a rendering of the scene in Python is to execute the rendering invoking the BaseDocument::RenderDocument() and pass the BaseBitmap you intend to manipulate via the GeClipMap. Best, Riccardo
  • Get Active Light Parameters

    sdk c++ r20
    2
    0 Votes
    2 Posts
    491 Views
    r_giganteR
    Hi Ogers, thanks for reaching us. With regard to your question, I need some further explanation since I actually don't get what you mean by: to get these parameters from c4d lights Which parameters are you referring to? What is the final intent of the Light Translator plugin? Best, Riccardo