@adrianh wrote:
I have an interesting problem that can be solved easily with a suitable script.
The problem is as follows:
I do a large amount of laser cutting for people and i get the files in all kinds of formats like AI, CDR, DXF etc. I do what is needed to get them into Rhino and once I have them in Rhino I have to ensure that the colors are appropriately set for my setup i.e. black for cut, red for engrave etc.I often get files that were created in ColelDraw and the colors come through as converted from CMYK. So I have 3 shades of black, 5 shades of red etc.
I have been sorting this out to date by process of elimination and moving stuff to the appropriate layer but it is very time consuming.
The ideal would be to run a script that would accumulate all the different colors into a checkbox. Then to be able to check specific colors and set them to a specific color and or layer.
I think that the routine could be used for a variety of things other than just selecting colors and changing them to be the same - The framework of the routine could be modified to select any criteria into the list box and combine them based on a particular criteria (I am a programmer so I tend to think in terms of writing code in a object oriented way so that the structure of the code can be used in different ways.)
Anyway - i am happy to write what I need, the issues that I have are as follows:
I don’t know how to pick the unique colors up and then to put them into a Checkbox for selection.
I don’t know how to run though the checkbox and then get the checked colors back to compare with the objects.All the looping though objects etc is not a problem its just really loading and unloading the checkbox that is an issue.
Posts: 5
Participants: 4