@m_adam I still don't understand how to get the id of parameters? How do I know that this parameter has id 500?
Posts made by SmetK
-
RE: FontData BaseContainer IDs
-
RE: Use buttons in tags. Rope tag.
@i_mazlov Thank you for your reply. That was very helpful!
-
Use buttons in tags. Rope tag.
Hello again, everyone. I still can't figure out how I can use a button in a tag using python. I need to select two points and fix them in a tag. Can you tell me the correct solution? Use Python Generator.
-
RE: Changing the angle of spline-aligned objects
@ferdinand How nice to know there are professionals like you out there. Thank you for your help, it is encouraging to keep going. Optimized and Works as it should!
-
RE: Changing the angle of spline-aligned objects
@ferdinand I'm sorry, for some reason I didn't realize I had to put the code in right away. Thanks for your help, I will study the code! I'll let you know what happens.
-
Changing the angle of spline-aligned objects
Hey, everybody. The code aligns my objects along the direction of the spline, but the problem is that the corner of the original meshes, do not look along the spline. I have tried c4d.utils.MatrixRotY() and other axes, but I don't get the rotation I want. I feel I can solve this problem somewhere in the green area(screenshot). Is there any solution to this problem? And to have the last object rotated 180 degrees relative to the others. The second screenshot is as it should be.
-
RE: Transform coordinates of a polygon's points
@Cairyn @Kantronin Hey, everybody. Could you throw a more detailed implementation code?
-
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!
-
Is it possible to access text characters in a text spline ?
Hi all. Can I somehow get access to this or that symbol in order to influence it locally?
For example, reduce the size of the second letter. -
RE: Python. Cinema4d. All iterations in the Text value
@ferdinand thx very much! ill save this
-
RE: Python. Cinema4d. All iterations in the Text value
@bentraje thx for answer!
Is it physically impossible to enter random numbers within one text? I, without a script, can drive several lines of text or numbers into one text. Is it possible to do the same with Python? maybe other mechanics, not through iterations?