Matrice accessing members of...



  • 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



  • 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



  • 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



  • 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.



  • 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));
    


  • 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 :)


Log in to reply