• Run Plugin Last

    python r19
    3
    1
    0 Votes
    3 Posts
    1k Views
    A
    @m_adam Hi Maxime, It works like a treat! I've ended up changing the UI to a treeView and it's still working great. Thank you very much! Andre
  • TreeView Add Data

    6
    0 Votes
    6 Posts
    1k Views
    O
    I passed on the listview for now. I still have to look in more details for the TreeView. Thank you.
  • Seperators in GetSubContainer

    python windows r20
    2
    1
    0 Votes
    2 Posts
    603 Views
    M
    Hi @Boony2000 In a GetSubContainer, to insert a separator use InsData(0, "") The ID used should always be 0. As described in ShowPopupDialog Example. Which give us def GetSubContainer(self, doc, submenu) : menuItems = [["name1"], ["name2", "hasIcon"], ["name3"]] for i, data in enumerate(menuItems) : if len(data) > 1: submenu.SetString(i+1000, data[0] + "&i" + str(c4d.IDM_KEY_NEXT) + "&") submenu.InsData(0, "") else: submenu.SetString(i+1000, data[0]) return True Cheers, Maxime.
  • FILENAME attribute extension filter

    c++
    5
    0 Votes
    5 Posts
    1k Views
    rsodreR
    @s_bach Ok, I can revert the values to the base container. That solves my issue, thanks!
  • Filling vertex_color for SceneHook

    2
    0 Votes
    2 Posts
    570 Views
    a_blockA
    Hi, GeAllocTypeNC() was already removed from the API with version R15 (see API Change List in R15 and maybe more interesting for you Transition to Cinema 4D R15 API). You are already on the right track using NewMem(), now in R20, there's an additional change, which bites you here: The error handling. This indeed is quite an important topic and (of course no bragging involved at all) a really nice feature in the new MAXON API. But it's also the one thing that causes most needed changes for R20. The point is, here at MAXON we do not take error checking lightly. Actually quite the opposite, we enforce error handling where ever we can and our internal developers have no chance to get away without. So, before I provide the solution, here the recommendation to take the time to read the manuals about the Error System. Additionally I recommend the manuals about classic API Entity Creation and Destruction and its MAXON API sibling about Memory Allocation. The additional means you get provided with in the new MAXON API can really make your life easier. I apologize for writing so much before coming to your actual issue. In the end NewMemClear() now returns an Error Result, which basically encapsulates the actual return value and needs to be evaluated in order to get the actual return value. No worries, this is done in a highly optimized form, so it should not impede your code's performance in any way. If you take a look at our SDK examples, you will find quite a few places, where error handling in conjunction with NewMem is demonstrated in various ways. Cheers, Andreas
  • BaseContainer bc = NULL;

    c++ r20
    3
    0 Votes
    3 Posts
    744 Views
    R
    Thank you Andres. I'm going with the boolean variable to flag if a BaseContainer contains something or not.
  • Quicktab Radio Buttons

    2
    0 Votes
    2 Posts
    929 Views
    merkvilsonM
    Seems like this is a way to go. LONG TEST_BUTTONS {CUSTOMGUI QUICKTABRADIO; CYCLE{ TEST_1; TEST_2; TEST_3; }FIT_H;} Previously my mistake was that I was writing CUSTOMGUI QUICKTABRADIOBUTTON instead of CUSTOMGUI QUICKTABRADIO
  • Non blocking modal

    c++
    3
    0 Votes
    3 Posts
    900 Views
    rsodreR
    @m_adam I think that will not be possible for what I want to do. I ended up catching BFM_LOSTFOCUS in the dialog, canceling the process.
  • INCLUDE user-defined res files

    python
    3
    0 Votes
    3 Posts
    1k Views
    a_blockA
    Hi, no, you are not! Really there are no stupid questions and please do not delete such posts. Especially not, if you already invested time in posting the correct answer. We'd rather see this as knowledge others might benefit from in the future. Cheers, Andreas
  • Using maxon::BaseList with a TreeView?

    2
    0 Votes
    2 Posts
    732 Views
    M
    Hi @Kuroyume0161, first of all, welcome back in the plugincafe community, I'm glad to see you here! Unfortunately, this is not possible to use directly a BaseList with a TreeView and as you already figured it out, you have to maintain this list yourself. While it's very nice that a TreeView offer this abstraction level, and allows to make a list from any kind of data, it has the overhead to builds this TreeView layer. Cheers, Maxime.
  • Adding icon to submenu

    python windows r20
    7
    1
    0 Votes
    7 Posts
    2k Views
    B
    Thanks, Maxime! I will use that in the meantime. Edit: Why can't I flag your posts as the correct answer? I can only flag my own.
  • getline not working

    6
    0 Votes
    6 Posts
    2k Views
    R
    It is so weird that it worked in versions pre R20. Well, I will have to find a new solution, then.
  • GetCache() bug

    python
    4
    0 Votes
    4 Posts
    1k Views
    M
    Hi @merkvilson, this feedback has been communicated to our development team. Cheers, Maxime.
  • Checkmark in submenu list when using GetSubContainer

    python r20
    4
    2
    0 Votes
    4 Posts
    998 Views
    a_blockA
    Yes, that's appropriate. Thanks
  • Undefined symbols for architecture x86_64

    9
    0 Votes
    9 Posts
    3k Views
    R
    This is really weird but after getting this error (and everything all being Ok), the way that I found to get rid of this error is to delete the xcodeproj, the props, the vcxproj and the vcxproj.filters files from the project folder, leaving just the projectdefinition.txt file there, and running the Project Tool again. Then, opening the newly created xcodeproj file, I no longer get this error and it compiles fine.
  • Use of undeclared identifier 'g_resource'

    8
    0 Votes
    8 Posts
    2k Views
    R
    Good news. And... more good news. The best news are that, after creating a Debug version and running Cinema 4D R20 from XCode, all of a sudden, the plugin started working!!! I then created a simple build (not a Debug one) and it is still working fine The other good news is that I now know how to create a Debug version
  • GeDialog in a Python Script: error without exception set?

    python r20
    6
    0 Votes
    6 Posts
    1k Views
    fwilleke80F
    Hi Maxime, now that's interesting. You code runs perfectly fine. If I copy & paste your dialog code into my script, it still works, though your dialog is seemingly similar to mine. So, I have no idea what fixed it, but it did. Maybe some excess trailing spaces somewhere? Weird... but thank you for doing your magic If I ever find out what was happening here, I'll post here. Cheers, Frank
  • Current document in Team Render

    c++
    3
    0 Votes
    3 Posts
    1k Views
    V
    @r_gigante It was about updating an object during the render process but I used a different aproach just by sending the object's doc to that function so I think it could be solved already.
  • GeDialog in a Python Script does not work

    r20 python
    3
    1
    0 Votes
    3 Posts
    1k Views
    fwilleke80F
    Aaah, ok, thanks! I browsed a couple of examples here in the forum, and always saw them return True. Should've known better Cheers, Frank
  • Polygon selection order

    python r20
    2
    0 Votes
    2 Posts
    838 Views
    r_giganteR
    Hi Pim, thanks for reaching us. With regard to your question, I confirm that there's no option to get the order of the selected polygons nor the interaction tag can help in this direction. Best, Riccardo