definitions for spline deformer



  • On 01/11/2013 at 11:32, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   r14 
    Platform:      
    Language(s) :     C++  ;

    ---------
    Hi, 
    i can't find the definitions for the spline deformer object. can someone point me to them?

    MGSPLINEWRAPDEFORMER_AXIS for example

    thanks in advance,
    Ello



  • On 01/11/2013 at 11:42, xxxxxxxx wrote:

    C4D/modules/mograph/res/description/omograph_splinewrap.h

    Best,
    -Niklas



  • On 01/11/2013 at 11:42, xxxxxxxx wrote:

    so, this is something that is not always available in cinema, right?



  • On 01/11/2013 at 12:00, xxxxxxxx wrote:

    ah, ok. i see. it is now part of the core. but where is Omograph_splinewrap defined?
    i've included omograph_splinewrap.h but get an error for an undeclared inentifier 'Omograph_splinewrap'

    any ideas?



  • On 01/11/2013 at 12:12, xxxxxxxx wrote:

    It isn't defined. Grab a Spline Wrap deformer, ask for its type and add the definition in your source code.

    > #include <c4d.h>
    > #include <omograph_splinewrap.h>
    >
    >
    > enum {
    >     Omograph_splinewrap = 1019221,
    > };
    >
    >
    > // ...

    Best,
    -Niklas



  • On 01/11/2013 at 12:16, xxxxxxxx wrote:

    thank you very much



  • On 26/06/2014 at 08:02, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    It isn't defined. Grab a Spline Wrap deformer, ask for its type and add the definition in your source code.

    > #include <c4d.h>
    > #include <omograph_splinewrap.h>
    >
    >
    > enum {
    >     Omograph_splinewrap = 1019221,
    > };
    >
    >
    > // ...

    Best,
    -Niklas

    Niklas can i ask you a couple of questions about the above:

    How does the #include <omograph_splinewrap.h> know where to find it?  Would that imply setting the mograph folder up as an Additional Include Directory inside the Properties in VisualStudio?  Or am i missing something obvious?

    Why are u using these brackets <> around the include as opposed to "" is there any difference?

    Thanks..



  • On 26/06/2014 at 09:40, xxxxxxxx wrote:

    Hi Eclektrik,

    most paths that contain resource description files are already added to the Include Directories of the
    _api or cinema4dsdk project files. You can manually add the path to the Mograph description resource
    directory.

    When using "", the compiler will first take a look into the parent folder of the current file and then
    search all other specified paths. <> will only search those paths but also built-in headers which must
    not necessarily exist as files.

    See http://stackoverflow.com/questions/1367316/include-and-include

    Best,
    -Niklas



  • On 27/06/2014 at 03:35, xxxxxxxx wrote:

    Thanks for the replies Niklas much appreciated.


Log in to reply