Hi --
1: Is the technique of setting object attributes via messages documented anywhere?
(x2.html has most things, but I don't see this.)
2: Is there a list of all the standard objects, and the names of all attributes (methods) which are settable via messages? (A language specification or reference should have this)
3: If I send the message [color $1( to an object, say a tgl, it seems to follow an index into a table (modulo 30) which corresponds to the little table that comes up in the object properties dialog box:
So my last question is, can I rely on that table staying the same across all versions of PD? Will index 13 always be Red?
(In Yoda speak, "Faith in this I do not have")
4: Can I change that table?
5: I would prefer to set an object's color via an RGB value Can I do that?
Thanks!
On Wed, Dec 23, 2015 at 8:08 PM, William Huston williamahuston@gmail.com wrote:
Hi --
1: Is the technique of setting object attributes via messages documented anywhere?
Probably in the source code...
...
5: I would prefer to set an object's color via an RGB value Can I do that?
Here is a description of how to do it. I hope it's correct! : http://lists.puredata.info/pipermail/pd-list/2005-11/032378.html
Martin
Hi William,1. I documented this info in each iemgui help patch for Pd-extended. I used a template which the Pd community created, and which Hans (Pd-extended's maintainer) suggested I use. Those revised help patches don't appear in Pd Vanilla.2. Yes, I made documentation for all Pd Vanilla objects that list this information using the same template above (plus some abstractions, and some classes that only appear in Pd-extended.)3. IMO yes. And in my GUI port of Pd-l2ork, 13 remains red. However, I don't show that little table in the iemgui properties-- I just use the default color picker where you can type in html hex color values. 4. I think in the current Pd-l2ork you can put some number of custom colors in the color picker, but I'm not sure if they persist across instances. In Pd Vanilla, no, you cannot.5. Assuming you're only talking about iemguis, at least in Pd-l2ork you can set it that way. But it's saved only as a single float. I have created some new drawing commands in Pd-l2ork that use hex values as well as standard names (red, blue, etc.). -Jonathan
On Wednesday, December 23, 2015 8:34 PM, Martin Peach <chakekatzil@gmail.com> wrote:
On Wed, Dec 23, 2015 at 8:08 PM, William Huston williamahuston@gmail.com wrote:
Hi --
1: Is the technique of setting object attributes via messages documented anywhere?
Probably in the source code... ...
5: I would prefer to set an object's color via an RGB value Can I do that?
Here is a description of how to do it. I hope it's correct! : http://lists.puredata.info/pipermail/pd-list/2005-11/032378.html
Martin
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Thu, Dec 24, 2015 at 2:08 AM, William Huston williamahuston@gmail.com wrote:
Hi --
1: Is the technique of setting object attributes via messages documented anywhere?
How to set iemgui properties via messages was documented in Pd-extended menu (but not in vanilla):
Help > Pd Help Browser > Manuals > 0.Intro > 33.guis.pd > pd messages
5: I would prefer to set an object's color via an RGB value Can I do that?
Attached patch [colormaker] demonstrates how to set RGB values using this formula:
-(1 + blue + green * 256 + red * 65536)
where blue, green and red are integers 0 - 255
There is one caveat: many RGB values can not be saved because numbers are stored with reduced precision.
Katja