• InitResourceBitmap issues

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    670 Views
    merkvilsonM
    Thanks, Andreas! I was looking for interface_icons_2x for a while
  • urllib2.urlopen fails on C4D for Mac

    Cinema 4D SDK
    32
    0 Votes
    32 Posts
    23k Views
    M
    Hi @SolarPH please open a new topic with your code and the exact error. Cheers, Maxime.
  • detect the selection of an object

    Moved Cinema 4D SDK python
    13
    0 Votes
    13 Posts
    3k Views
    Passion3DP
    @C4DS Although a solution has not been given (as I wish to do), explanations have been provided. I have therefore considered it resolved. For IRL reasons, I could not do so. I will be able to get back to it, and if I find THE solution, I will post it
  • 0 Votes
    2 Posts
    553 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
  • EditText: intercept/discard keystrokes

    Cinema 4D SDK 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.
  • Detect single click

    Cinema 4D SDK 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
  • Function 12144 (connect objects)

    Cinema 4D SDK 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:)
  • Getting points and edges of parametric objects

    Cinema 4D SDK 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.
  • Dealing with Symbolcache

    Cinema 4D SDK python
    12
    0 Votes
    12 Posts
    3k Views
    M
    Hi with the latest update of Cinema 4D (R24 SP1), any update to a description files should now be reflected correctly to the symbolcache files, so it's not needed to delete it manually anymore. Cheers, Maxime.
  • Accessing Mesh Vertex Data

    Cinema 4D SDK
    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.
  • Handling direction of the normal tag

    Cinema 4D SDK r20 python
    6
    0 Votes
    6 Posts
    2k Views
    M
    Issues with GetAllHighlevelData() and VariableTag.SetAllHighlevelData() is now fixed in R21. Cheers, Maxime.
  • Get points within a given radius

    Moved Cinema 4D SDK
    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.
  • Add tooltip to subcommand

    Cinema 4D SDK python windows r20
    3
    0 Votes
    3 Posts
    705 Views
    B
    Thanks for confirming my suspicion
  • How to deepcopy DescID?

    General Talk
    3
    0 Votes
    3 Posts
    1k Views
    mikeudinM
    @m_adam Thank you!
  • Developing .obj sequence exporter for selected objects

    Cinema 4D SDK python
    12
    0 Votes
    12 Posts
    4k Views
    B
    Probably not that helpful but there is an existing script for the C4D OBJ Sequence Exporter https://richh.co/c4d-native-obj-sequence-export-no-plugins/
  • Export selected objects to separate files

    Moved Cinema 4D SDK
    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!
  • Open GeDialog on second screen

    Cinema 4D SDK python windows r20
    3
    0 Votes
    3 Posts
    714 Views
    B
    Ok, thanks!
  • BaseDocument.StartPickSession() Documentation

    Cinema 4D SDK python
    2
    0 Votes
    2 Posts
    628 Views
    M
    Hi, Donovan thanks for reaching us. The mystery variable is actually an int flag to retrieve if the user cancels the PickSession or not. def OnPick(flags, active, multi): if flags & c4d.PICKSESSION_FLAG_CANCELED: print "User cancel" print "active: ", active print "multi: ", multi def main(): doc.StartPickSession(OnPick, multi=True) No there is no way. Actually nothing, it's up to you to detect when the user cancels with PICKSESSION_FLAG_CANCELED and do whatever you want. Cinema 4D handle automatically undo. But you can call BaseDocument.GetSelection before and BaseDocument.SetSelection after if the user cancels the pick session) Finally, note the C++ version offer to adds userdata ( For more information please read the C++ documentation https://developers.maxon.net/docs/cpp/2023_2/struct_pick_session_data_struct.html) If you have any question, please let me know. Cheers, Maxime.
  • Drawing into Rendering

    Cinema 4D SDK 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