주 콘텐츠로 건너뛰기

CLO 헬프센터

어떻게 도와 드릴까요?

CLO API scope

댓글

  • ottoline

    You don't need that. You can get a seam out easily (it's already named in the scene tree) and stroke it using external tools. Unfortunately many people are doing this wrong and poorly with their render engine.

    You can bake a seam and top-stitch out on export. But what you can also do is export object nurbs. And these can be used in your next process to stroke in automatically new or more detailed pattern seams radi, edge normal's, top stitching, pucker and creasing all at higher detail than you will get in CLO3D. Which means you have a non-destructive workflow, it's as quick as one click to edit, and you can change either edge of a pattern piece in realtime externally for all this extra pattern panel detailing.

    When you export a pattern garment you can save the fabric textures to bake down the seam stitching to the resultant UV image map. You can also export with that the object nurb if there is one or pick that up in your next workflow as a manifold edge selection, or nurb. So geometry points are more about defining in CLO3D the sets and areas of what you want to export. When you export a stop-stitch as a texture rather than as a 3D object you will get a strip (decal) for the top-stitch, which you can redefine with any image map. ( I prefer to do that using stroking these selection sets as it is generally faster and higher quality for the stitching). This is called a 'trim' sheet, [ Link ] and can be changed on the fly in realtime. It would be good to see this type of flexibility inside CLO3D as a polygon mesh selection tool - but for now it is maybe best done externally, as it is much faster to control and lets you bake down the pattern piece texture maps to use in CLO3D for texture map you reload into CLO3D for vray rendering.

     

    See my reply here in this thread. >> [ Link ]

    0
  • megs

    Thank you so much for the detailed reply. I had some trouble understanding the answer as I am new to using clo. My purpose was to be able to identify which two curves from pattern pieces are aligned to form a seam, If possible, I wanted to do this using the python or c++ api. My aim is to write a plugin which can export the 2D pattern with the stitching information.

    The existing dxf export only exports the 2D pattern without the stitching information, If I cannot use the api to write the seams to a file,  I guess my question is how do I export the stitching information(seams) from clo3D?

    In the above answer, I am curious about what the scene tree is? Is this something in clo that I can access via the api?

    Thanks again so much.

    0
  • ottoline

    You can already do that at a technical level.

    Stitching information is in the 3D file (in the simulated drape) as a  top-stitch element. It's not part of the DXF as that is simply kept to the international fashion CAD standard, that every fashion manufacturer uses. It's not needed as an illustration as it's a defined layer in the dxf/aama or dxf/astm format you export - like the cut-line or notches and notation symbols you use. You can export those items when you export the DXF or print file (pdf) there is a toggle to switch what you want on or off.

     

    I think you need to maybe express what is your end goal or ideal process, otherwise you may simply be trying to code something that already exists.

     

    There is no need to export any more detail than what is in the existing DXF. All CAD systems will take this in and a garment sample can be manufactured. That is rock solid in that respect. If you are introducing a new element, or proposing to do something 'new' you should describe that in detail so experienced users can point you in a clear technical direction. If you want to visualize top-stitching (or export it seperately) that can already be done, but would be in the draped format. If you want the top-stitching to appear as a 2D image on the fabric texture fill as a image map, that can already be done, if you want to export the 3D top stitch as a separate model draped, that can be done. etc. 

    0
  • megs

    I apologise for the confusion. My ideal use case is to be able to create pattern pieces, stitch them together and simulate them using an external simulator, rather than the one in CLO.

    To do this, I would need to supply the pattern pieces and information of how they are stitched together to the external simulator.

    I was trying to access this information via the api, but maybe I should look at other ways of doing this(like only exporting the top-stitches)?  What would be the best way to achieve this?

    0
  • megs

    That was helpful, thank you! 

    Although, this is not my only reason for choosing clo. I am also trying to explore if can script the stitching process, use the api to make edits to the pattern etc. I am looking if the API can be used to do these things, is this possible in clo? 

    0
  • alliemartinez

    hi we want to write a python script that will allow us to automate the following.

    -open 3D cad object

    -script will load/change various pattern pieces to different textures and/or solid colors from a designated folder and then export an image of the garment with each different texture. 

    I have read your API documentation but it seems to only cover import/export items. it does not include info on the texture endpoints.

    Can you provide more info on where I can find the following in the API:

    -Basic Parameters->Texture (this would be to change the print with various files that are applied)

    -Displacement Map->Color (this will allow me to change the color of various pattern pieces)

    -Transformation->Texture Angle, Width, Height (I will change scale and direction of the print texture)

     

    0
댓글을 남기려면 로그인하세요.