Skip to main content
Inspiring
February 12, 2026
Question

How plugin can share time-variable data with expressions.

  • February 12, 2026
  • 0 replies
  • 8 views

I want to do some calculations in c++ (faster and more secure), and then, can get these calculations in some layers’ expression to control things like their position and scale for example.
Note that this calculated data changes every frame, as this calculated data is driven (function of) by other properties of some layers such as (position, rotation, scale, rect).

The data I’m interested in can be represented as an array of numbers, the array size can be more than 100.


How can I achieve something like that?


It is REALY IMPORTANT for my new tool, as this will make it faster and secure.

Example.
My plugin would get the position of two layers and get the mid-point.
then, I want for these layers to get the value that was calculated inside the plugin and use it in an expression for the position property.

Layer 1/2 → position → expression:

midPoint “calculated from the plugin”

value + midPoint ← the return of the expression.

“This is just a simple example, the calculations are much more complex than this!”

Please, if you couldn’t, upvote the problem so it reaches someone that can help me.
Thank you!