register tag plugin



  • I can't register a tag plugin.
    I have applied for a plugin ID, and it can be used on the R21 version, but after I change it to the R20 version, C4D will stop running on the startup interface. After deleting the registration tag plug-in statement, it is no problem.

    RegisterTagPlugin(ID_PMX_MODEL_TAG, GeLoadString(IDS_PMX_MODEL_TAG), TAG_EXPRESSION | TAG_VISIBLE | TAG_ADDTOTAKEGROUP, mmd::PMX_Model_Tag::Alloc, "PMX_Model_Tag"_s, AutoBitmap("MMDIcon.tif"_s), 0);
    

    All resource files are complete and no problem



  • hi,

    it's hard to tell with only that part of the code.
    If you don't want to share your code in public you can send it to us using our mailbox sdk_support@maxon.net

    I did try to add the flags TAG_ADDTOTAKEGROUP to our sdk example of LookAtCamera tag and there's no issue.
    Could you try with our sdk example ?

    Cheers,
    Manuel



  • Hi Manuel,
    thank you for your reply!

    My project is link.
    I register tag plugin on PluginRegister.cpp,line 248.
    I created it by referring to the LookAtCamera tag.
    Even though I delete the flags TAG_ADDTOTAKEGROUP, I still cannot register.

    Thank,
    AiMiDi



  • hi,

    thanks a lot for the repository.

    There's an issue with the projectdefinition.txt, you should set your own ID on this file and replace net.maxonexample.cinema4dsdk
    Otherwise, cinema4D will may not load. (specially with r21). It should show you a message in the output console of visual studio.

    What's still unclear to me is that i don't understand what's your workflow.
    Are you compiling the project R20 or R21 ?
    Are you trying the compiled result on R20 or R21 ?

    I've tried the R20 project on R20.059 and it's working as expected.
    I've tried the R21 project on R21.115 and it's working as expected.

    Cheers,
    Manuel



  • Hi Manuel,
    thank you for your reply!

    I changed the ID and the plugin can be started separately.
    I added the plugins I use frequently, still can't start, I found it conflicted with other plugins.
    Report is report.txt .
    I don't know what caused the conflict.

    I wrote the code on R21sdk, then ported it to R20sdk, and removed the incompatible parts.
    It worked well before until I registered the tag plugin.

    Thank,
    AiMiDi



  • Hi Manuel,

    I updated other plugins to the new version, my plugin can work, thank you for your help!

    Thank,
    AiMiDi


Log in to reply