Copy link to clipboard
Copied
Hi All
I'm in need to Show/Display "Color Picker Panel" in InDesign, to the user to select their desire color to create a swatch through SCRIPTING. Can anyone help me in this.
I wrote a similar ColorPicker Script sample in the past, too.
http://www.milligramme.cc/wp/2010/02/extendscript_colorpicker.html
mg
Copy link to clipboard
Copied
$.colorPicker();
Harbs
Copy link to clipboard
Copied
thanks Harbs, it works good.
But, one more thing, how to get CMYK from this color picker .It gives numeric value for our every color picking. My need is to get its CMYK or RGB Value.
For example,
while selecting "C=78, M=29, Y=59, K=27" on colorpicker it calling method returns value "2447174".
Copy link to clipboard
Copied
From the tools guide:
colorPicker()
$.colorPicker (name)
Invokes the platform-specific color selection dialog, and returns the selected color as a
hexadecimal RGB value: 0xRRGGBB.
name: The color to be preselected in the dialog, as a hexadecimal RGB value
(0xRRGGBB), or -1 for the platform default.
Google convert hexadecimal rgb in javascript for how to convert the values...
Harbs
Copy link to clipboard
Copied
Take a look here: http://bit.ly/9kpVZI
--
tomaxxi
http://indisnip.wordpress.com/
Copy link to clipboard
Copied
I wrote a similar ColorPicker Script sample in the past, too.
http://www.milligramme.cc/wp/2010/02/extendscript_colorpicker.html
mg
Copy link to clipboard
Copied
Nice!
Harbs
Copy link to clipboard
Copied
sorry, I changed permalink setting in my weblog.
http://www.milligramme.cc/wp/2010/02/extendscript_colorpicker.html
here is new url
http://www.milligramme.cc/wp/archives/588
mg
Copy link to clipboard
Copied
unluck for me! , i wish to test similar example of this script! but the links not working!, please if anyone had the script to just upload it in fresh link and thanks in advance