Macro Color Picker And Groups

Hello All,
This is my first post!! yay!
I'm quit new to macro creating, and am not so good with scripting.
I've created this color correcting macro... Here's an example of the UI:

nuiDefSlider("OldFilmCC.CC_Add_red",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_green",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_blue",-1,1,0);
nuiDefSlider("OldFilmCC.CC_rGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_gGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_bGamma",0,4,0);

the problem is that I can't groups without deleting the values.
Also, i want to add a color picker (to the CC_Add function). I've tried using the example in the manual, but it doesn't work.
Can any one please enlighten me to what am i doing wrong?

Thanks a bunch
Yoav

unless you're quite good with programming, i would advise you to use the GUI to create your first macros. it's fairly straightforward and well documented.
++ chris

im not quite sure what you are trying to do. from what i understand you are trying to replace the sliders you have on the add function with a color picker? if that is the case then there are some attributes you have to modify.

can you reply with the content inside your .h and UI.h so i can see how you built it so far? if i can see that then i can most likely tell you how to complete the process. i do color pickers on my macros and it is really easy.

Hey, Thanks for the reply and forgive the lateness of mine. That's exactly what i'm trying to make.. a color picker insted of sliders. Here#s the content of the .h file (some of it):
image OldFilmCC(
image In=0,
float CC_Add_red=0.03,
float CC_Add_green=0.03,
float CC_Add_blue=0.03,
float CC_rGamma=1,
float CC_gGamma=1,
float CC_bGamma=1,
float CC_Mult_red=1,
float CC_Mult_green=0.845501,
float CC_Mult_blue=0.490098,
float Vignette_Fade=0.621,
float Highlight_BlurX=0,
float Highlight_BlurY=50,

and here's the .ui:

nuiPushMenu("Tools");
nuiPushToolBox("User");
nuiToolBoxItem("@OldFilmCC",OldFilmCC());
nuiPopToolBox();
nuiPopMenu();

nuiDefSlider("OldFilmCC.CC_Add_red",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_green",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_blue",-1,1,0);
nuiDefSlider("OldFilmCC.CC_rGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_gGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_bGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_Mult_red",0,3,0);
nuiDefSlider("OldFilmCC.CC_Mult_green",0,3,0);
nuiDefSlider("OldFilmCC.CC_Mult_blue",0,3,0);
nuiDefSlider("OldFilmCC.Vignette_Fade",0,1,0);
nuiDefSlider("OldFilmCC.Highlight_BlurX",0,200,0.1);
nuiDefSlider("OldFilmCC.Highlight_BlurY",0,200,0.1);

if you take the first node, for instance. it is a simple add node. but in the macro, i only see it as sliders. I want a picker
thanks again

k i spent a few minutes to check out what you have so far. it seems you were pretty close. all you had to do different was change some code in the UI file, specifically the "nuiDefSlider" controls. I spent a little time typing you some color picker controls so all you have to do with these is go in to your UI.h file and replace these:

nuiDefSlider("OldFilmCC.CC_Add_red",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_green",-1,1,0);
nuiDefSlider("OldFilmCC.CC_Add_blue",-1,1,0);
nuiDefSlider("OldFilmCC.CC_rGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_gGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_bGamma",0,4,0);
nuiDefSlider("OldFilmCC.CC_Mult_red",0,3,0);
nuiDefSlider("OldFilmCC.CC_Mult_green",0,3,0);
nuiDefSlider("OldFilmCC.CC_Mult_blue",0,3,0);

...with these:

nuiPushControlGroup("OldFilmCC.addColor");
nuiGroupControl("OldFilmCC.CC_Add_red");
nuiGroupControl("OldFilmCC.CC_Add_green");
nuiGroupControl("OldFilmCC.CC_Add_blue");
nuiPopControlGroup();
nuiPushControlWidget("OldFilmCC.addColor",
nuiConnectColorTriplet(kRGBToggle,kCurrentColor,1)
);

nuiPushControlGroup("OldFilmCC.gammaRGB");
nuiGroupControl("OldFilmCC.CC_rGamma");
nuiGroupControl("OldFilmCC.CC_gGamma");
nuiGroupControl("OldFilmCC.CC_bGamma");
nuiPopControlGroup();
nuiPushControlWidget("OldFilmCC.gammaRGB",
nuiConnectColorTriplet(kRGBToggle,kCurrentColor,1)
);

nuiPushControlGroup("OldFilmCC.multRGB");
nuiGroupControl("OldFilmCC.CC_Mult_red");
nuiGroupControl("OldFilmCC.CC_Mult_green");
nuiGroupControl("OldFilmCC.CC_Mult_blue");
nuiPopControlGroup();
nuiPushControlWidget("OldFilmCC.multRGB",
nuiConnectColorTriplet(kRGBToggle,kCurrentColor,1)
);

I hope this works out for you. I know the controls work for me. just make sure before you do this you save an original copy of the UI.h file somewhere else as backup.