@Cairyn @Kantronin Hey, everybody. Could you throw a more detailed implementation code?
Latest posts made by SmetK
-
RE: Transform coordinates of a polygon's points
-
RE: Setting an object to the target section of a Transform Constraint Tag
@ferdinand Just ran into the same problem. Thank you for the solution!
-
RE: How to resize a rectangular spline to fit text using Python?
@i_mazlov I tried the GetRad() method. This is exactly what I need, thanks!
-
RE: How to resize a rectangular spline to fit text using Python?
@i_mazlov Hi, thanks for the reply! My situation is like in the screenshot. I have a parametric spline and text that the spline should fit to. I guess I'm interested in local coordinates, although global ones would be useful. There is no code. I just saw how they do it through xpresso, but it looks complicated.
-
How to resize a rectangular spline to fit text using Python?
Hello everyone, what code or function can help me achieve this task? As the text changed, the rectangular spline changed its size according to the bounding box.
-
RE: Access to the coordinate manager.
@ferdinand Thank you very much for the expanded object.
-
Access to the coordinate manager.
Hello everyone, I want to make a script that will align an object with wronged axes using the "Align Workplane to Selection" command. But the problem is that I don't understand how to access the coordinate manager so that I can use it to reset all values in world coordinate mode. Tell me, how can I achieve this? Screenshot example:
-
RE: Uniform distribution of objects along the length of the center of plane.
@ferdinand Thanks a lot. Very useful information. You are the best!
-
Uniform distribution of objects along the length of the center of plane.
Hi all. Please tell me how can I achieve a uniform distribution of cubes along the length of another object, for example, from the center of the plane. The number of cubes is controlled by the number of iterations in the loop.
my code:
def main() -> None: null = c4d.BaseObject(c4d.Onull) #Plane pl = c4d.BaseObject(c4d.Oplane) plW = pl[c4d.PRIM_PLANE_WIDTH] = 200 plH = pl[c4d.PRIM_PLANE_HEIGHT] = 50 bbPl = pl.GetRad() # plane Bounding box pl.InsertUnder(null) #BASE-CUBE for i in range(2): cube = c4d.BaseList2D(c4d.Ocube) xSize = cube[c4d.PRIM_CUBE_LEN,c4d.VECTOR_X] = 50 ySize = cube[c4d.PRIM_CUBE_LEN,c4d.VECTOR_Y] = 50 zSize = cube[c4d.PRIM_CUBE_LEN,c4d.VECTOR_Z] = 50 cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Y] = ySize/2 cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_X] = ??? cube.InsertUnder(null) return null c4d.EventAdd()
-
RE: Is it possible to access text characters in a text spline ?
@i_mazlov got it! thx for answer!