From 0bcf964602960df52cb15a8b00bb093d0529a021 Mon Sep 17 00:00:00 2001 From: jkaplan55 <93295860+jkaplan55@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:13:29 -0700 Subject: [PATCH] Update c74_min_object_wrapper.h added a post_attribute_setup , which can run as part of the construction process but after the attributes are assigned their initial values. per this post on the forum: https://cycling74.com/forums/how-to-set-color-attribute-in-min-devkit?replyPage=1#reply-68e42962cd9372ab9a653161 --- include/c74_min_object_wrapper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/c74_min_object_wrapper.h b/include/c74_min_object_wrapper.h index 6a5ad3b..137a271 100644 --- a/include/c74_min_object_wrapper.h +++ b/include/c74_min_object_wrapper.h @@ -54,12 +54,14 @@ minwrap* wrapper_new(const max::t_symbol* name, const long ac, c max::t_dictionary* d = object_dictionaryarg(ac, const_cast(av)); if (d) { max::attr_dictionary_process(self, d); + self->m_min_object.try_call("post_attribute_setup"); max::jbox_ready((max::t_jbox*)self); } } else { max::object_attach_byptr_register( self, self, k_sym_box); // so that objects can get notifications about their own attributes + self->m_min_object.try_call("post_attribute_setup"); max::attr_args_process(self, static_cast(args.size()), const_cast(args.begin())); } return self;