kirkwoodwest
Junior Member
Building Lemur Templates for Live and Studio
Posts: 47
|
Post by kirkwoodwest on Mar 5, 2019 9:03:34 GMT
Facing difficulty doing any sort of coloring via script...
decl color = RGB(237,33,0); setattribute(my_object,'color', color);
the color seems to be one thing when I observe it in photoshop or an online tool. it is something else in lemur. :/
My observation is that it has to do with the light property as well, but i don't think that is accessible via script. any ideas or pointers?
|
|
kirkwoodwest
Junior Member
Building Lemur Templates for Live and Studio
Posts: 47
|
Post by kirkwoodwest on Mar 5, 2019 9:25:21 GMT
Found a way to handle this... set the attribute in the editor on a dummy object. read that value and then apply it to anything you want.
decl color = getattribute(my_object,'color'); Monitor.value = color; Would be nice to know the formula to generate colors on the fly... so you could do some nifty color transitions.
RGB() seems totally bogus... but now that i'm reading the manual the values are 0 - 1 and not 0-256. will have to try this again.
|
|
|
Post by xPsycHoWasPx on Mar 5, 2019 12:16:39 GMT
I normally just write the values from online tools like
color = {255,0,0};//red color setattribute(my_object,'color', rgb(color/256));
|
|