ok i found the error
this gives the propertie value
bpy.context.scene.arcsdeg
but i used this instead which gives ?
bpy.types.Scene.arcsdeg
i copied this from and old script and it had error in it !
i guess it 's part of the leaning curve!
Thanks very much anyway
import bpy
from bpy.props import *
from mathutils import *
from math import *
craterlist1=[]
craterlist1.append ([ 'Aristarchus',23.7, 47.4, 40 ])
craterlist1.append ([ 'Aristoteles',50.2, 17.4, 87 ])
craterlist1.append ([ 'Archimede',29.7, 4.0, 83 ])
craterlist1.append ([ 'Archimede',29.7, 4.0, 83 ])
bpy.types.Scene.moonrad = FloatProperty( # Myfloat is the name of the Float variable = Scene property
name="Moon Radius Km", # Name printed in button
description="Enter a float", # Tip tool
# attr= "test",
default = 1738.0,
min = -5000,
max = 5000)
print (' Propertie Moon Radius Km =',bpy.context.scene.moonrad) # Print data value of the propertie
# Float Numbers Properties
bpy.types.Scene.arcsdeg = FloatProperty( # Myfloat is the name of the Float variable = Scene property
name="Arc Deg", # Name printed in button
description="Enter a float", # Tip tool
# attr= "test",
default = 1738.0,
min = -5000,
max = 5000)
bpy.context.scene['arcsdeg'] = 1.0*(pi/180)*bpy.context.scene.moonrad
print (' Propertie Moon Arc Deg =',bpy.context.scene.arcsdeg) # Print data value of the propertie
last_menu1=1
last_menu2=1
last_menu2=3
dim1=craterlist1[0][3]
print ('dim1=',dim1)
print(' @@@@@@@@@@@@@@@@@@@@',bpy.types.Scene.arcsdeg.__class__)
print(' @@@@@@@@@@@@@@@@@@@@',bpy.types.Scene.arcsdeg)
print (' size Dim1=',dim1)
deg1=dim1/bpy.types.Scene.arcsdeg
# deg1=dim1/bpy.types.Scene.arcsdeg
print (' degrees =',deg1)
here is a short version with the error
if you run it you’ll see same error!
but when you define a propertie as float i mean how can it be a tuple?
Thanks happy 2.5