You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a script and use registerNativeObject to register object A
log objectA.valueA > result is 1
change valueA = 2 (without re-registering in the script)
log objectA.valueA > result is 2
create another dynamicObject B
set "object B" as a property of object A (without re-registering in the script)
log objectA.objectB > result is undefined
re-register objectA with registerNativeObject
log objectA.objectB > result is [Object] (good)
removeProperty objectB from objectA
log objectA.objectB > result is null
This means to me that non-object properties are synced between DynamicObject and scripts (recursively I think), so modifying and removing nested objects and values is working, but adding new properties doesn't update the script-side of the registered objects.
This becomes a problem having one structure tree that already takes some time to convert initially with JuceToQuickJS, but then when I add objects in that structure from the script, I need to manually call a refresh function that will force a reregister. Ideally, this would just be synchronised like the rest.
I can put up a minimal example if needed
What is the expected behaviour?
objectB is findable by the script as soon as "setProperty(objectB)" has been called on object A
Operating systems
Windows
What versions of the operating systems?
11
Architectures
64-bit
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the develop branch
The bug is present on the develop branch
Code of Conduct
I agree to follow the Code of Conduct
The text was updated successfully, but these errors were encountered:
Detailed steps on how to reproduce the bug
This means to me that non-object properties are synced between DynamicObject and scripts (recursively I think), so modifying and removing nested objects and values is working, but adding new properties doesn't update the script-side of the registered objects.
This becomes a problem having one structure tree that already takes some time to convert initially with JuceToQuickJS, but then when I add objects in that structure from the script, I need to manually call a refresh function that will force a reregister. Ideally, this would just be synchronised like the rest.
I can put up a minimal example if needed
What is the expected behaviour?
objectB is findable by the script as soon as "setProperty(objectB)" has been called on object A
Operating systems
Windows
What versions of the operating systems?
11
Architectures
64-bit
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchThe bug is present on the
develop
branchCode of Conduct
The text was updated successfully, but these errors were encountered: