I am using Ovito 3.12.2 basic.
When writing an expression for “compute property” for a neighbor particle, it seems the expression like:
@ParticleType==1 && Position.X > 0.0
is accepted, however the same expression using type name instead of integer type is not:
@ParticleType=="O" && Position.X > 0.0
gives:
Syntax error: Unexpected value ParticleType found at position 2.
Thank you for reporting this problem. The expression preprocessor, which takes care of resolving named types, still contains a limitation that prevents it from parsing the @ character in variable identifiers. We are fixing the problem in OVITO 3.12.3. Here is a new dev build:
ovito-basic-3.12.3-dev-7cf4f6be-win64-dev3.12.3.exe
ovito-basic-3.12.3-dev-7cf4f6be-macos-arm64-dev3.12.3.dmg
ovito-basic-3.12.3-dev-7cf4f6be-x86_64-dev3.12.3.tar.xz
1 Like