This may or may not be common knowledge, but it's bugged me for a while.
When dynamically creating objects with struct scalar graphics they would not appear until the patch was closed then reopened.
Well, comma loadbang fixed it! [obj 0 0 someobject arg arg, loadbang(
-
scalar graphic not showing dynamically - SOLVED
-
When you dynamically create an abstraction, the
[loadbang]
objects inside it do not get fired. That's why your scalar doesn't show without adding the explicit "loadbang" message to your patch. -
Works well if the objects that are loading are the only ones to exist in the patch and [loadbang( message is only required once, after all the objects are loaded
Not quite the panacea I thought, because each object that is instantiated on the go, resets (loadbangs) the existing instances.
So, to fix that problem, adding this to abstraction this seems to work -
@Balwyn You can usually wait until you have dynamically instantiated all the abstractions you want, and then send a single "loadbang" message to the parent canvas.
Of course, if you are doing live dynamic patching (or incremental) then all bets are off.