theatre-js / theatre

Motion design editor for the web
https://www.theatrejs.com
Apache License 2.0
10.82k stars 338 forks source link

How to programmatically modify the value of the property panel? #476

Closed dtboy1995 closed 4 months ago

dtboy1995 commented 4 months ago

image How to programmatically modify the value of the property panel? No relevant API found in the documentation

image This will not update the UI

Any help is greatly appreciated

vimlesh1975 commented 4 months ago

studio.transaction(({ set, unset }) => { set(obj.props.x, 10) })

dtboy1995 commented 4 months ago

studio.transaction(({ set, unset }) => { set(obj.props.x, 10) })

Thank you, I'll give it a try

dtboy1995 commented 4 months ago

studio.transaction(({ set, unset }) => { set(obj.props.x, 10) })

Thank you very much . it works well