Is it possible to use a reference propeties inside scripting?

Is it possible to do something like this in scripts?:

var data = ctx.data;
if (data.reference) {
    data.prop.iv = data.reference.data.prop.iv;
    replace();
}

Where data.reference is a reference to a content item.

Unfortunately not. There is a limitation in the script engine that prevents this behavior :frowning: