pattrstorage question: adding clients dynamically?

Apr 12, 2010 at 5:06pm

pattrstorage question: adding clients dynamically?

i have a pattrstorage in my main patch, and i’m dynamically creating copies of a patch with a pattr inside…
only problem is the clientlist doesnt update in pattrstorage. is there a message i have missed which will update / rescan available clients?

thanks

justin

#49708
Apr 13, 2010 at 3:00pm

here’s an example of the problem i am facing, please download the zip files for main patch and sub-patcher.

essentially, my question is: how do you update the client list in pattrstorage if your patch uses scripting to create new sub-patchers with pattrs? is this even possible?

one thing i have noticed is that if i recreate the pattrstorage after dynamically creating subpatches then the clientlist updates… but that seems like it could throw up other problems < ?>

thanks

j

#178533
Apr 13, 2010 at 3:40pm

I think you forgot the [autopattr] in your pattrclone abstraction

hope this helps

léo

#178534
Apr 13, 2010 at 3:54pm

thanks léo,

i didnt think autopattr would be necessary, if i’m using a [named] pattr… but that doesnt seem to work anyway.
i just tried it and i get error msg in max window:

object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj

#178535
Apr 14, 2010 at 5:20pm

I can reproduce it. The strange thing is that it works with named ui object, that’s maybe a workaround.
See example attached

note : pattr objects can not be seen by a parent pattrstorage if there’s no autopattr object in the abstraction (that’s not true for simple subpatches)

#178536
Apr 15, 2010 at 8:48am

leo,

if it works with named ui objects, then its looking more and more like a bug…
can someone from c74 verify?

thanks,

j

#178537
Apr 20, 2010 at 1:42pm

c74 support are looking into this, and have suggested sending: “subscribemode 0″ to pattrstorage to update the clientlist. i have tested this and it works on my system.

j

#178538
Aug 8, 2013 at 8:56am

Three years later, difference person, different place, but same error message, this time 18 times :

object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj
object_attr_enforcelocal: could not enforce restore in newobj

If it’s a bug, it’s still in there ! :-)

#258337

You must be logged in to reply to this topic.