Navigation

    • Register
    • Login
    • Search
    1. Home
    2. Neekoe
    N

    Neekoe

    @Neekoe

    0
    Reputation
    15
    Posts
    2
    Profile views
    0
    Followers
    3
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    Neekoe Follow

    Best posts made by Neekoe

    This user does not have any upvoted posts yet.

    Latest posts made by Neekoe

    RE: How to change polygon axis

    @ferdinand Thank you very much for your continuous help in the past two days. I just searched axis related content in cafe, and it is confirmed that my idea is wrong. You are a patient and good teacher. Thank you again, Ferdinand.😁

    posted in Cinema 4D SDK •
    RE: How to change polygon axis

    @ferdinand Hello ferdinand
    thank you very much for the python matrix manual you provided me yesterday. I have solved this problem so far. However, there is a new problem. I hope that my axis can become vertical like the model, similar to the world coordinates. How to set my axis? Thank you

    GIF 2022-6-24 0-13-24.gif

                    const Vector xNor = xPos.GetNormalized();
    		const Vector yNor = yPos.GetNormalized();
    		const Vector zNor = zPos.GetNormalized();
    		const Matrix m = Matrix(Vector(1,0,0),xNor, yNor, zNor);
    		const Matrix inverseMat = ~m;
    
    		op3->SetMg(inverseMat);
    
    
    		const Matrix cuttomM = Matrix(Vector(1, 0, 0), Vector(0, 1, 0), Vector(0, 0, 1), Vector(0, 0, 0));
    
    		//No response at this step
    		op3->SetModelingAxis(cuttomM);
    		
    		ApplicationOutput(" m is @", inverseMat);
    
    posted in Cinema 4D SDK •
    How to change polygon axis

    Hi Guys:
    I'm sorry. Ferdinand told me that I should check the python matrix manual. After checking it, I thought that the python matrix was very easy to understand, but could not be applied to the c++ matrix, which made me very confused. I've been worrying about this problem for four days. I hope that I can set the matrix through two points and set my axis. Next, I use pictures to explain my problem. If I can provide the c++ code, Thank you very much (there may be some problems with the software translation I use. Please forgive me).
    thx!
    FDADGFDOK8)GF{GN)RPRX)A.png

    posted in Cinema 4D SDK •
    RE: Custom convert matrix to polygon

    @ferdinand I think I understand. I'm trying to convert now. Thank you for your continuous answers

    posted in Cinema 4D SDK •
    RE: Custom convert matrix to polygon

    @ferdinand thx ferdinand,The example I wrote above is feasible in other software. Maybe Maxon has its own matrix method. I am looking for a way to implement this example through C4d c++. The matrix in the SDK gives me a headache. I need a 3*3 matrix
    In addition, I found that my title was wrong, not "custom convert matrix to polygon", but "custom convert matrix to polygon". Thank you very much for helping me merge posts

    posted in Cinema 4D SDK •
    Custom convert matrix to polygon

    Hi Guys:
    I hope to get an inverse matrix through two points, and then give this matrix to my model. So far, I have got two "vectors (point postion)". I'm sorry, I'm a novice in c++ and I'm confused by multiple matrices. I hope to get good results like the example below. 😥 Thank you

    [email protected]_y = normalize(@P-point(1,"P",0));
    [email protected]_x = normalize(cross({0,1,0},[email protected]_y));
    [email protected]_z = normalize(cross([email protected]_x,[email protected]_y));
    
    [email protected] = set([email protected]_x,[email protected]_y,[email protected]_z);
    
    @P *= invert(m);
    
    SetModelingAxis
    

    Vector up = Vector(0,1,0);
    Vector yPos = Normalize(point1Pos-point2Pos);
    Vector xPos = Normalize(Cross(up,yPos));
    Vector zPos = Normalize(Cross(xPos, yPos));
    

    edited by @ferdinand:

    @Neekoe said:

    I want to customize my axis through this method, thx 🤠

    posted in Cinema 4D SDK •
    RE: Get Point selection tag center

    @m_magalhaes Thank you, I think I understand

    posted in Cinema 4D SDK •
    RE: Get Point selection tag center

    @m_magalhaes Hi,m_magalhaes, I want to call your name again, because the last question is also your answer and has perfectly solved my problem. You are my God. Thank you very much.

    Can I ask another question? Last night, I found that my tag name may be unclear. I want to use my own name. But gettagdata is not a member of baselist2d. I tried to browse the API, but I couldn't find the answer. For example, findcustomgui, which can be clearly known in the SDK, belongs to getdialog 😥

    posted in Cinema 4D SDK •
    RE: Auto fill selection tag to link

    @m_magalhaes
    thank you so much,you and your code is perfact
    😁

    posted in Cinema 4D SDK •
    RE: Auto fill selection tag to link

    @m_magalhaes
    Oh, no, I'm really excited. Thank you very much. I'm looking at my code in your way now
    😁

    posted in Cinema 4D SDK •