michaelk Posted December 22, 2011 Share Posted December 22, 2011 I'm probably misunderstanding this. But is the color index supposed to be 0 to 255? GetColorChoice(dialogID,itemID,result) returns integer values way above that - usually 4 digits. It seems to work, but is there a list of these color values? thanks! mk Quote Link to comment
Pat Stanford Posted December 22, 2011 Share Posted December 22, 2011 I don't think they ever updated the function reference, but when colors expanded to more than 255 and custom palettes were introduced I think this changed. Quote Link to comment
michaelk Posted December 22, 2011 Author Share Posted December 22, 2011 [sound of forehead hitting table] Quote Link to comment
Vectorworks, Inc Employee klinzey Posted December 22, 2011 Vectorworks, Inc Employee Share Posted December 22, 2011 You should have access to the standard 255 of the classic Vectorworks color palette if you want to pick a color by index. New colors will be generated with indexes greater than 255. The good thing about this is that the first 255 colors will always be the same color from the Vectorworks color palette, previously if the user changed the color palette you would not know what color you would get using the index. You can use ColorIndexToRGBN and RGBToColorIndexN if you need to find or create a color. Quote Link to comment
Miguel Barrera Posted December 22, 2011 Share Posted December 22, 2011 The color index refers to the number of colors in a palette. You should have a utility that can draw the active palette on a layer and if you export this chart to vectorscript it will write each color index with the corresponding RGB color values. As far as I know, only the first 16 index colors in the vw classic palette were fixed/reserved but the rest could be any color so you could create your own color palettes Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.