python hscriptExpression not evaluating in python shell?

   2502   0   1
User Avatar
Member
338 posts
Joined: 9月 2006
Offline
Hey guys,

Has anyone had problems with python hscript expressions not working? Ive tried this a with a few expressions that point to a cop and nothing works in the python shell. But strangely they do work in parms?

For example add a ramp into a cop net and run this in the python shell

hou.hscriptExpression('pic(“/img/comp1/ramp1”, .5, .5, D_CR)')

it returns 0.0
I tried this with the res expression also. Not sure if this is a bug with cops and python?

This works in the hscript shell and on any parm on node perfectly fine.

Any ideas?

windows 64 any version of houdini 9.1/9.5

Thanks
Nick
  • Quick Links