render.setShaderAuto() ERROR

I simply placed the code


and got this error:

AttributeError: ‘libpanda.NodePath’ object has no attribute ‘setShaderAuto’

I thought I might be missing an inportant module, so I placed this (saw it in the cartoon shader example) code

from direct.filter.CommonFilters import CommonFilters

ImportError: No module named filter.CommonFilters

What am I not doing right?

Have an old version of Panda3D out there, perhaps? Automatic Shader Generation was introduced in 1.5.0. Are you sure you don’t also have an older version there?

Yes. I had to remove the older version. Thanks