• Dynamic Update on Plug-ins

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    644 Views
    B
    Hi @m_magalhaes Thanks for the response and clarification specially with the def __init___ and def InitValuesthat was news to me. The plug-in works as expected. Have a great day ahead!
  • 0 Votes
    8 Posts
    947 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • What are the options to install a Cinema4D plug-in?

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    2k Views
    M
    Hi Riccardo, Thank you for the detailed answer. With the many options available, I chose one that fits best with our installer. Again, thanks for the help! Maxime
  • 0 Votes
    3 Posts
    454 Views
    chuanzhenC
    @m_adam Thanks
  • GeGetModata inside Python Generator returns none

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    710 Views
    P
    to be honest - i don't know where my fault was. Unhappily i didn't commit the not working version. In my plugin i already used a virtual doc for some other calculations. thank you! vd.ExecutePasses(c4d.threading.GeGetCurrentThread(), True, True, True, c4d.BUILDFLAGS_NONE) md = c4d.modules.mograph.GeGetMoData(matrix) for m in md.GetArray(c4d.MODATA_MATRIX): rdPoints.append(m.off) works like a sharm.
  • Is there any way to check deformcache dirty

    Cinema 4D SDK r20 c++
    4
    0 Votes
    4 Posts
    934 Views
    M
    Hi @mike, I just wanted to confirm what @chuanzhen said. For more information see the C4DAtom Manual about the dirty stuff. Cheers, Maxime.
  • Matrix/HPB to XYZ and vice versa

    Cinema 4D SDK python r20
    7
    0 Votes
    7 Posts
    2k Views
    S
    @m_magalhaes said in Matrix/HPB to XYZ and vice versa: convert the matrix to XYZ xyz = c4d.utils.MatrixToHPB(m, order=c4d.ROTATIONORDER_XYZGLOBAL) # convert from radian to deg for i in xrange(3): xyz[i] = c4d.utils.RadToDeg(xyz[i]) print xyz Works perfectly. Thanks!
  • Tag Based Subdivision Surface?

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    1k Views
    B
    @r_gigante @Cairyn Thanks for the thorough explanation. I underestimated the task. I initially thought it was just an easy click since the function is already available as a generator. I was looking for the same behavior in Maya. Where the subdivision deformer or modifier is not a separate object. So I can select objects easily. Anyhow, will settle for what is available in C4D currently. Thank you. Will close this for now.
  • Datastorage unique and ordered

    Cinema 4D SDK r19 r20 c++
    8
    0 Votes
    8 Posts
    840 Views
    ManuelM
    hello, It's not related to Iterator. This simple example also complain about the default constructor. #include <iostream> class MYINT { public: MYINT(int inInt) { _myint = inInt; }; private: int _myint; }; int main() { MYINT myint; system("pause"); return 0; } It should say 'hey i don't have any constructor with no parameters". But if you give him something to initialize with it understand. MYINT myint = MYINT(10); MYINT myOtherInt = 10; MYINT myThirdInt(10); all this will end with _myint = 10; Cheers Manuel
  • Where is lib_geom.h

    Cinema 4D SDK r20 c++
    3
    0 Votes
    3 Posts
    848 Views
    M
    @s_bach Oh, i miss a important part, thank you!
  • 0 Votes
    4 Posts
    1k Views
    B
    @lasselauch I guess I need to revisit the script in the link above when I need to bake user data. Anyway, your script will do at the moment. It's readable enough for my newbie eyes It works as I expected! Thanks for the handy script. @m_adam Thanks for the confirmation!
  • ProjectTool & visual studio: /DELAYLOAD

    Cinema 4D SDK
    8
    0 Votes
    8 Posts
    2k Views
    ManuelM
    hello, if you can give us feedback that would be awesome. Cheers Manuel
  • Simulating a Scrub in the Timeline?

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    868 Views
    ManuelM
    hi @bentraje , Just to confirm @mp5gosu answer. We can also point you to BaseDocument manual where you have some information about ExecutePasses Cheers Manuel
  • 0 Votes
    8 Posts
    1k Views
    M
    Thanks, Mike for providing them, as said before be aware that if you encounter slowdown for the autocompletion and in typing in your IDE, it may come from here Cheers, Maxime.
  • Get/Fetch Node from an Existing Xpresso Tag

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    757 Views
    B
    Thanks @m_adam. Works as expected. My bad, I was looking at the documentation hierarchy erroneously (i.e c4d > modules > graphview > GvNode) Just a note: I think the if Multiply: line is supposed to be if isMultiply:. Thanks again. Have a great day ahead!
  • Can not compile plugin for R20

    Cinema 4D SDK
    7
    0 Votes
    7 Posts
    1k Views
    ManuelM
    hello, this thread will be considered as Solved tomorrow is you have nothing to add. Cheers Manuel
  • DESC_PARENT_COLLAPSE Twirl Down

    Cinema 4D SDK r20 sdk c++
    5
    0 Votes
    5 Posts
    662 Views
    ManuelM
    hello, this thread will be considered as Solved tomorrow is you have nothing to add. Cheers Manuel
  • 0 Votes
    6 Posts
    721 Views
    M
    Hi sorry I overlooked your answers. If you want to have something more consistent you should store it into the scene. So the things that make more sense is to store it into the basecontainer of the current GvNode. Like so import c4d def main(): if not c4d.threading.GeIsMainThread(): return bc = op.GetDataInstance() # Get an unique ID at https://developers.maxon.net/forum/pid store_value = bc[1000001] if Input1 != store_value: print "Something changed" bc[1000001] = Input1 else: print "Nothing changed" Cheers, Maxime.
  • 0 Votes
    2 Posts
    464 Views
    r_giganteR
    Hi temple, thanks for reaching out us. With regard to your question, I confirm that it's not possible to switch to Python 3.x since R20 is compiled against Python 2.x. Best, Riccardo
  • Python Node Executing Twice (R20.059 Bug?)

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    539 Views
    M
    My workaround still works for earlier version so you don't really need to check for version but it's up to you. Cheers, Maxime.