2.5 built 923

i had a script which was working before in older version

butnow i get an error on a Def function

so waht API change can cause this error to not recognise this function ?

does it ahve to be declared or registered or something else

any help appreciated
Thanks and happy 2.5

Might help if you said what the error was…

i ran the script in 923 and at the first call of this function it fails

but i works fine in version 175 !

################
begin function segments = Dail1
Traceback (most recent call last):
File “C:\Users\RJ\0blend25\0beta25330923\Filegenmenu1\dAILMAKEING1\DAILMAI
1.blend/Text”, line 185, in execute
NameError: global name ‘float2_range’ is not defined
draws swap exchange 9

#################

so why is it running ok in 175 but not in 923?

This is a function call inside an execute function of a class

must be some sort of API change

sorry did not follow all theses API changes !

Thanks for any help

You might want to try a newer build as there has been some breakage/fixing going on since they messed with main and bpy.ops.register().

Could be a bug they missed or something they fixed recently – there was a bunch of ‘import foo’ errors and this kind of sounds like one of them.