Custom property access in runScript within Expressions

Hello,

I have written a few custom scripts for use in expression bindings on custom properties. I am wondering how, if possible, to access other custom properties within the runScript code. For example:

runScript(“project.customfunction({Root Container.property})”)

The scripts will work with a dumb text input but not with a reference to a property. Is there a correct way to reference properties?

Thank you!

The property must have a string value or be converted to a string. You can do it like this:

runScript("project.pymodule.customfunction('"+{Root Container.property}+"')") Best,