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

    Matrice accessing members of...

    SDK Help
    0
    6
    476
    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 02/01/2004 at 17:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello All,
      I hope that you all had a safe and happy New Years..

      On to my question...

      I am using NAMM's bone spline COFFEE tag, and was wondering if there were a way to just have the spline set the bone chains position by just outputting the heading and pitch info and to leave the banking open so that I may manipulate it with an up vector node I found..

      Currently I have a an identical system that it's parts are getting their orientation (H and P and using this up vector node to control the banking. It is a bit slow and I am trying to optimize it so that I only need to use one bone chain system..
      currently the coffe code does a

      [rot=VectorToHPB(pos1-pos);
                op1->SetRotation(rot);
                op1=op1->GetDown();]

      and I was wondering of I could deconstruct the

      SetRotation(rot) so that I may acces it's members..

      Little help?

      -Danny

      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/01/2004 at 04:58, xxxxxxxx wrote:

        you can easily use SetRotation(vector(rot.x,rot.y,rot.z)) and replace (or do whatever you like :), one of the vector components
        hth

        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 04/01/2004 at 16:39, xxxxxxxx wrote:

          Is there any way of leaving one of thevectors blank so that I can access that variable with a separate operation? I have an up vector node that interpolates between 2 up vector targets. I want to use it in tandem with the coffe script from NAAM..

          Thanks fotr the reply
          -Danny

          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 04/01/2004 at 18:13, xxxxxxxx wrote:

            what do you exactly mean? you can replace each variable whenever you want.
            var new_comp = YourOperation(upvector);
            and then insert your vector (or components of it) wherever you want.
            Or do you mean something else? Show some code. It´s hard to guess what you want to do.

            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 05/01/2004 at 03:01, xxxxxxxx wrote:

              I think what you're looking for is:

                  
                  
                  var oldrot = op->GetRotation();  
                  op->SetRotation(vector(rot.x, rot.y, oldrot.z));
              
              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 05/01/2004 at 04:33, xxxxxxxx wrote:

                hö? I thought that´s already what I have answered in my first reply. Sometimes I don´t get smarter out of it no matter how many answers I give 🙂

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