Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    How to rotate tangents

    SDK Help
    0
    11
    1.5k
    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
      Helper
      last edited by

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

      On 11/12/2002 at 09:50, xxxxxxxx wrote:

      Just treat them as ordinary vectors in object space. How exactly do you want to rotate them?

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

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

        On 11/12/2002 at 09:56, xxxxxxxx wrote:

        well, I am calculating a rotationvector from a splinetangent with:

            
            
            Vector rot = obj->GetSplineTangent(obj->UniformTonatural(x*(lenght/4)/length),0);
        

        Now I want to rotate the tangents with this rotationvector.
        I tried this with

            
            
            objt[0].vl *= rot;  
              objt[0].vr *= rot;
        

        but that doesn´t work.

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

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

          On 11/12/2002 at 11:08, xxxxxxxx wrote:

          Use ^= since vl and vr are vectors not points. And I see no rotation matrix, just a rotation vector. (vector * vector = dot product) Use RotAxisToMatrix() before multiplying.

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

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

            On 12/12/2002 at 08:34, xxxxxxxx wrote:

            thanks I will try that. And another question without the need to open a new thread.
            I have a LINK Description for my plugintag, but how to retrieve the dropped object?
            Thanks
            Samir

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

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

              On 12/12/2002 at 08:52, xxxxxxxx wrote:

              or of a string field from a STRING description.
              String str = data->GetString(ID); or
              String str; data->GetString(ID,str);
              do both not work.

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

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

                On 12/12/2002 at 10:10, xxxxxxxx wrote:

                I tried this but it doesn´t seem to work either. In the doc example there is a t_data instead of my data, but I have no clue what it is good for. Help please...
                Bool DPTransfer::Message(GeListNode *node,LONG type,void *data)
                {
                  
                    if (type == MSG_DESCRIPTION_CHECKDRAGANDDROP)
                    {
                      DescriptionCheckDragAndDrop *dcu = static_cast<DescriptionCheckDragAndDrop*>( data ); //t_data??
                      switch (dcu->id[0].id)
                      {
                          case DPT_BASE_FOUND:
                          dragged = (BaseObject* )dcu->element;
                        return TRUE;
                      }
                    }
                return TRUE;
                }

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

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

                  On 12/12/2002 at 10:24, xxxxxxxx wrote:

                  ok sorted it. It works exactly like that. Only my fault. 🙂
                  Thanks anyway for looking. g*

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

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

                    On 02/05/2005 at 06:25, xxxxxxxx wrote:

                    Hi All,
                    Works for me to sofar, but here you check for a object hoovering above the Link. It can be used to accept or refuse the hoovering object.
                    Now, how do i find out when the object is finally dropped.
                    There seem to be no message for that.
                    Thanks

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

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

                      On 03/05/2005 at 02:15, xxxxxxxx wrote:

                      Wouldn't that be an ordinary SetDParameter() call?

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

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

                        On 03/05/2005 at 11:21, xxxxxxxx wrote:

                        Hi Mikael,
                        Thanks for your answer but a GePrint("Bingo")  does not appear in my console with the SetDParameter() call.
                        A lot of Bingo's in the tags Message function, listening to MSG_DESCRIPTION_CHECKDRAGANDDROP on hoovering.
                        (i have a Description res Linkbox, its for the AM)
                        What am i doing wrong?
                        Thanks,

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