Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Getting data from SplineData

    Scheduled Pinned Locked Moved SDK Help
    16 Posts 0 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 08/12/2004 at 16:31, xxxxxxxx wrote:

      Ok Darf, all ok 🙂

      cheers
      Renato T.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 12/12/2004 at 13:27, xxxxxxxx wrote:

        Dwarf,

        your help make my code working but don't initialize anything. Where i can find an example code for that?

        In sdk i don't found anything that help me to use correct this panel.
        Thank
        Renato T.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 14/12/2004 at 07:39, xxxxxxxx wrote:

          Sorry for not getting back, the forum must forward emails to the old bhodinut account.

          The code I offered works for initializing the the spline data ( that is how NICKL works ). Can you create an example project and post it?

          Erhmm... I have never been considered a dwarf before. It's darf, no matter what certain MAXON employees say. 9-)

          darf

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 14/12/2004 at 21:02, xxxxxxxx wrote:

            Hi Darf, thanks.

            here the code for Init:

            GeData d ( CUSTOMDATATYPE_SPLINE, DEFAULTVALUE );
                 SplineData *p = (SplineData* ) d.GetCustomDataType( CUSTOMDATATYPE_SPLINE );
                 if ( p )
                 {
                      p->MakeLinearSpline( 2 );
                      p->InsertKnot( 0.0, 1.0, TRUE );
                      p->InsertKnot( 1.0, 1.0, TRUE );
                      p->SetRound( 0.0 );
                 }
                 data->SetData( PATHDEFORMER_SCALE, d );

            and here i read data:

            SplineData *spdata=NULL;
                 spdata=(SplineData* ) data->GetCustomDataType(PATHDEFORMER_SCALE, CUSTOMDATATYPE_SPLINE);

            and..

            spliney=spdata->GetPoint(o);
            to get yspline value from (0<o<1)

            -----------------------------------------
            it work, but when i try to reset splinedata from the editor, all points disappear.. i thought that a precedent initialization was usefull to set default value.

            Any help?

            Thanks
            Renato

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 15/12/2004 at 16:52, xxxxxxxx wrote:

              Spline Datatypes reset to no points. I am not sure if there is way to get around that unless you write your spline datatype.

              darf

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 15/12/2004 at 17:17, xxxxxxxx wrote:

                Uhm..
                i think that i no wrote spline datatype

                i'm a very starter, could you be more precise?

                Thanks
                Renato T.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 15/12/2004 at 17:56, xxxxxxxx wrote:

                  p->MakeLinearSpline( -1 );
                  p->InsertKnot( 0.0, 1.0, TRUE );
                  p->InsertKnot( 1.0, 1.0, TRUE );

                  Ok, now it work like i need.

                  Testing... 🙂

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 15/12/2004 at 19:59, xxxxxxxx wrote:

                    Uhh, -1, is that a default value I don;t know about? That value is the number of points to allocate me thinks. I am not sure. I offered the only code for the C4D internal spline datatype. The custom spline datatype I was referrring to would be completely written by you. The internal spline type is very limited IMHO.

                    darf

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 17/12/2004 at 17:13, xxxxxxxx wrote:

                      Darf,

                      With this my spline was initialized with 2 point and make a corretc default curve.

                      Anyway, the probs is my english. For me is hard to understand.

                      Thanks for your help
                      Renato T.

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 17/12/2004 at 19:04, xxxxxxxx wrote:

                        Problem solved?

                        darf

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Helper
                          last edited by

                          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                          On 17/12/2004 at 19:43, xxxxxxxx wrote:

                          Yes, now when i start plugin the spline are like i need.

                          thanks
                          Renato T.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post