• 3rd party APIs into pyp/pypv file

    Cinema 4D SDK python
    7
    0 Votes
    7 Posts
    5k Views
    M
    Hi see Cinema 4d R23 MacOs Pip Install Broken.
  • 0 Votes
    14 Posts
    5k Views
    B
    Thanks for the confirmation @a_block Will hope for the best in the future regarding sublime Have a great a day ahead!
  • Drive one parameter with another and vice versa

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    813 Views
    merkvilsonM
    Thanks, Andreas! This is a really interesting approach.
  • 0 Votes
    3 Posts
    1k Views
    K
    Hi @m_adam Thank you for your reply. It works perfectly!
  • Request UAC from pyp/pypv

    Moved General Talk python
    4
    0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, no worries, the first line is so big because of a stray "=" on the next line, underlining the first to be interpreted as a heading. I'll move this thread to the General Programming & Plugin Discussions category, because in the end C4D does not provide any means to provoke UAC, nor do we deem it necessary inside our API as it is a pretty system specific thing. Yet, the discussion might lead back to C4D related questions, and then I'll either happily move it back or we'll have a new thread in the Cinema 4D Development category. In general I think, it would probably be better to convince your users to install the plugin into either the plugins folder in the "user folder" or even (assuming R20+) a completely separate directory added to the users prefs. Another thought, while definitely possible with Python, I'd say an update mechanism should change/replace files while the main application is running. After all you can not be completely sure, which files the application decides to lock at certain points off time, in which case your updater would probably run into issues. My recommendation is to rather update by restarting the main app (for C++ it's inevitable anyway). Cheers, Andreas
  • 0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, I'm sorry for getting back late to you. We have never done this ourselves nor have we heard of anyone. The reasons for the difference between C++ and Python API are probably historic. Also back then we had no generic concept for callbacks in Python. Now, with MAXON API and appearance of Delegates and Observables such things will probably handled much nicer in future. Maybe it were also performance considerations. Many words, for a "I don't know", sorry. In any case we'll forward this a an idea to our development, so it is at least considered for a future release. Cheers, Andreas
  • Cinema 4D R20 and Octane 3.08.5 attribute issue

    Cinema 4D SDK
    11
    0 Votes
    11 Posts
    7k Views
    A
    @a_block Hi Andreas, Thanks for your help and you are never too late! That actually makes more sense. Unfortunately I can't seem to replicate the issue again on my machine, as it seems that it's been working for all my updates. I will have a look on one of my team machines when released and see if that could be the problem. Thank you again!
  • 0 Votes
    12 Posts
    3k Views
    M
    Please do not delete topics once they are resolved, this topic may help other people that have the same issue. Instead, use the Q&A functionality to mark a topic as solved. Cheers, Maxime.
  • c4d.PrefsLib_OpenDialog is not working.

    Cinema 4D SDK python r20
    3
    0 Votes
    3 Posts
    684 Views
    merkvilsonM
    @m_adam Thanks, Maxime! You solved yet another issue.
  • InitResourceBitmap issues

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    730 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
    25k 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
    616 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
    850 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
    781 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.