Python and time dependency.

   51   0   0
User Avatar
Member
84 posts
Joined: 3月 2025
オフライン
I wanted to implement one of the most convenient things – copying a parameter to a parent from a menu or hotkey and creating a link. Everything works, but after the Python script, the node becomes time-dependent.

If I manually copy and paste a relative ch() reference into the parameter, there is no time dependency.
If I write the same ch() string or any string, for example, just "1", using the Python code src.setExpression("1"), the expression is written and works, but the node becomes time-dependent. In other words, the .setExpression method makes the node time-dependent. I've been racking my brain trying to figure out how to get rid of this. The AI ​​suggested a couple dozen cleanup options, but none of them removed the time dependency.
The parameter itself is a regular float, nothing out of the ordinary.

Does anyone know how to write an expression to a parameter in Python without creating a time dependency, or how to remove/clear it?
  • Quick Links