Previous Thread  Next Thread

chat icon Why is Python so picky in 2.25????

t_revs

Posted: Fri Oct 25, 2002 11:18 am
Joined: 22 Oct 2002
Posts: 19
Can someone PLEASE tell me why Python has changed so much in Ver2.25 and why just about nothing Python works!!!!.
I am a comparative newbie to Python but surely if I make a Python programme in 2.23 is should be close to running in 2.25.
It seems to be picky little things like say

mat = Blender.Material.Get('Halo') works in 2.23
but I think the - Get - has to be changed to - get - in 2.25.

Is there a list of these silly changes out there?
It would be a great help to us struggling newbies as I would prefer to just learn ONE version of Blender Python - that is Ver 2.25.

Gripe over but help would be appreciated.

Cheers
Reply with quote


markluffel

Posted: Fri Oct 25, 2002 11:39 pm
Joined: 19 Oct 2002
Posts: 13
<edit>Sorry, this is untrue. The Get I saw was for global variables. I thought I had tried them out.</edit>
There is a "get" and a "Get" in 2.25. Both seem to work the same, but I assume you are only using this as an example.
There will eventually be some order out of the Python API chaos, probably more than the NaN days. It might be worth some of your time to start an API specification that could be used by the coders. It would be a good use of someone's time.
You can also check the "Interactive Python" thread for a nice way to use blender python the way you would the cli interpreter. Just "dir(Blender)" and continue on down until you find what you are after. You might also use pydoc on it.
[ I tried, but since the internal blender python is 2.0 and my python libs are 2.2, it choked. ]
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group