04-17-2020, 04:47 PM
(This post was last modified: 04-17-2020, 09:08 PM by remkonoteboom.)
Ok, I think I understand. This change will do what you want:
This will allow this expression:
@COUNT(vfx/asset['type',@GET(sobject.name)])
Note how the env_sobjects argument allow for extra sobjects to be named within the expression language.
Give it a try and if it works, could you put in a pull request on Github to make sure it goes in the version you want it to. We will merge it up the various versions as needed.
Code:
1150 try:
1151 env_sobjects = {
1152 'sobject': sobject
1153 }
1154 value = Search.eval(value, env_sobjects=env_sobjects)
1155 except Exception as e:
1156 print(e.message)
1157 value = "Error [%s]" % value
This will allow this expression:
@COUNT(vfx/asset['type',@GET(sobject.name)])
Note how the env_sobjects argument allow for extra sobjects to be named within the expression language.
Give it a try and if it works, could you put in a pull request on Github to make sure it goes in the version you want it to. We will merge it up the various versions as needed.