Navigation

    • Register
    • Login
    • Search
    1. Home
    2. Djoneeeee
    D

    Djoneeeee

    @Djoneeeee

    0
    Reputation
    11
    Posts
    5
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

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

    Best posts made by Djoneeeee

    This user does not have any upvoted posts yet.

    Latest posts made by Djoneeeee

    RE: Create Polygon Selection Tag

    @ferdinand aaaa i understood, thanks for help megaman)

    posted in Cinema 4D SDK •
    RE: Create Polygon Selection Tag

    @ferdinand hi, thanks for the answer, but I don't understand how this example can help me write polygons to the tag.

    I need to select the polygons of the object from the list of polygons and write these polygons to the tag

    posted in Cinema 4D SDK •
    Create Polygon Selection Tag

    Hello, guys!
    i have some list of polygons [1, 4, 5] and i need to put these selected values from object in polygon Selection tag (PST), in command lines PST have only commnd GetBaseSelect i need in command like SetBaseSelect

    theObject = doc.GetActiveObjects
    polySelection = theObject.GetPolygonS()
    polySelection.DeselectAll() 
    xmlPolygons = [1, 4, 5]
    for xmlPoly in xmlPolygons:
        thePoly = int(xmlPoly) - 1
        polySelection.Select(thePoly)
    
    ???????????????
    
    
    posted in Cinema 4D SDK •
    Tangent of Point in Spline

    Hello friends.

    how can i change the angle between two points of tangent of point spline (for example screen in 3ds max)?
    If it is possible, how do it in python c4d
    20220421_023350.jpg

    posted in Cinema 4D SDK •
    RE: Strip Texture Path using Python

    @ferdinand
    I need to remove file paths only for textures.
    manually, I only know this method:
    Window -> Texture Manager
    a7f926ea-0e07-4ef0-a406-031b2148f53a-изображение.png
    in Texture Manager: Edit -> Select All -> Relink Textures and Change your Computer Folder
    dfce640c-8327-4d59-835d-ebeef802d5b0-изображение.png
    But I don't know how to do it automatically without using the instructions above. If it’s not difficult, you can share code snippets, how you can save Project with Assets??

    I use this code to create textures:

    userPath = # My PC Folder
    theNode = c4d.BaseList2D(c4d.Xbitmap)
                filename = # File Name 
                if filename != None:
                    theNode[c4d.BITMAPSHADER_FILENAME] = userPath + filename
                    #theNode[c4d.BITMAPSHADER_FILENAME] = filename
    

    When I use the script the textures have the given file format:
    cb0dc176-a03e-4407-86fa-187b6c69e0af-изображение.png
    But I want to achieve this file format:
    c7d2b7b5-f4a2-444c-a3b5-2337ac579e07-изображение.png
    When manually adding a texture, this window appears:
    88f48bdb-cede-4682-9521-59981718e2dc-изображение.png
    which can regulate this, if there is a fragment to solve this problem, I will be grateful.
    Thanks for Answer, will be wait feedback.

    posted in Cinema 4D SDK •
    Strip Texture Path using Python

    Hello.
    How can I remove the texture path from a project in c4d r17 using python, so that another person on his computer does not have to re-bind the texture path

    posted in Cinema 4D SDK •
    RE: Set Base View Rotation and Position

    @cairyn Thank you so much) This is what I was looking for! magic)

    posted in Cinema 4D SDK •
    RE: Set Base View Rotation and Position

    @cairyn It’s just that the 3D viewer can also move quietly on the work surface, which means it has position and rotation, I want to set this position and rotation somehow, I’m interested in how it can be done only position and rotation.

    posted in Cinema 4D SDK •
    RE: Set Base View Rotation and Position

    @cairyn I have a document.
    The main task is to convert 3d max format to c4d using xml file and fbx file. I want the 3d viewer in 3d max to copy the position and rotation to the c4d file. I have the position and rotation of a 3d viewer from 3d max, it remains to set the position and rotation in the c4d file.
    I will try your method, but without an example it is not very clear to me

    posted in Cinema 4D SDK •
    RE: Set Base View Rotation and Position

    @cairyn Thanks for the answer, unfortunately there is no code yet, I have no idea how to create this code snippet.
    I can get position and rotation 3d Viewer use command BaseView.GetMg(), but i cant set position and rotation 3d viewer.
    I need change 3d viewer transformation without create new objects or cameras.
    My task is the following: I have a matrix with rot, pos, I need to get the rotation and position viewport (3d viewer or warden) from the matrix values.
    You can put the camera in this position to display the object, but I need not to have this camera on the scene. if the camera is removed the viewer will move to the begin position.

    posted in Cinema 4D SDK •