@ferdinand aaaa i understood, thanks for help megaman)
Best posts made by Djoneeeee
Latest posts made by Djoneeeee
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) ???????????????
I need to remove file paths only for textures.
manually, I only know this method:
Window -> Texture Manager
in Texture Manager: Edit -> Select All -> Relink Textures and Change your Computer Folder
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:
But I want to achieve this file format:
When manually adding a texture, this window appears:
which can regulate this, if there is a fragment to solve this problem, I will be grateful.
Thanks for Answer, will be wait feedback.
@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.
@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
@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.