ID 542592 - Certain Python mathematical evaluations and functions do not work in Katana 5.0 and 6.0

Follow

Problem summary
There are some Python mathematical evaluations and functions that do not work in Katana 5.0 and 6.0
 
Customer reported version
Katana.5.0v5
 
Customer reported platform
CentOS8
 
Steps to reproduce
 
1) Create a Group node
 
2) Hover the Group node and press E to edit
 
3) Click the wrench in the Parameters tab labelled Edit Node
 
4) Select Edit User Parameters
 
5) Click Add > Number and repeat this twice
 
6) On the first parameter click wrench > rename parameter and call this test
 
7) On the second parameter click wrench > rename parameter and call this foo
 
8) Edit the first parameters ("test") value to 1.4
 
9) Right click the second parameter ("foo") and select expression from the dropdown menu
 
10) Left click the arrow to the right of the parameter name ("foo")
 
11) In the box test add any one of the following lines:
 
round(user.test)
user.test < 1.0
user.test <= 1.0
user.test > 1.0
user.test >= 1.0
 
Expected behaviour
For the expressions to work and not give out errors
 
Actual behaviour
Depending on the expression you use you get errors like:
 
Error: type ParamRef doesn't define __round_method.
 
Error: '>=' not supported between instances of '_ParamRef' and '_ParamRef'
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Katana 6.0v2 - CentOS 7 - Windows 10
Katana 6.0v1 - CentOS 7
Katana 5.0v5 - CentOS 7
Katana 5.0v1 - CentOS 7
 
Unable to reproduce bug in:
Katana 4.5v5 - CentOS 7
Katana 4.0v8 - CentOS 7 - Windows 10
 
Earliest version tested
Katana 4.0v8 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why