[Bf-python] MarbleSharp, ValueError: invalid texture stype

nicolas bonnand nicolas.bonnand at wanadoo.fr
Sun Mar 21 15:51:47 CET 2004


Hi,

I can't get setSType working with Marble type.

Although they are listed in 2.32 API
( 
http://www.blender.org/modules/documentation/232PythonDoc/Texture.Texture-class.html#setSType 
)
MarbleSoft , MarbleSharp and MarbleSharper don't
seem to be valid stypes for Marble type.

The following simple script works well with Cloud,
but it doesn't work with Marble

#--------- beginning ----------

import Blender
from Blender import Draw, BGL, Texture


t1=Texture.New('T1')
t1.setType('Clouds')
t1.setSType('CloudColor') # OK

t2=Texture.New('T2')
t2.setType('Marble')
t2.setSType('MarbleSharp') # ValueError

#--------- end ----------


 Traceback (most recent call last):
  File "test.py", line 11, in ?
    t1.setSType('MarbleSharp')
ValueError: invalid texture stype
 



I'm using:

  blender-2.32.tar.bz2

  linux mandrake 9.2 kernel 2.4.22-21mdk

  Python 2.3 (#2, Aug 31 2003, 17:27:29)
  [GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)] on linux2


Any help appreciated.

Nicolas




More information about the Bf-python mailing list