I’ve been looking at the 2.5 api and trying some stuff and thought I’d ask some questions…( i know it’s in progress, but ideasman42 said that no major changes were planned)
Now that the blender draw module is gone and we have bpy.ui
I can’t figure out how to do a pupmenu or pupblock. anyone know if it’s in there or (if not,) if it will return?
mesh materials are read only… now, I can add a material slot with bpy.ops.object.material_slot_add and also remove slots… but when you change which material a slot uses then nothing is echoed in the console report…
so right now is it impossible to change the materials on a mesh? if not, then how?
will the popup menus (for specials, edge specials, face specials and vertex specials for example) become “pythonised” in the UI folder for customisation?
I know it’s maybe jumping the gun a little, but I’m itching to do more scripts for 2.5!
just a note i got from ideasman - they plan to add function calls within collections, so .object.material_slot_add will become something like object.materials.add(material) and the whole underscoring thing will go away.
i saw a thread last week saying that at the siggraph show there was a rumor of a possible beta release in mid august ?
so not certain anymore when we’ll get the new 2.5
and begin to learn it!
ok i got the latest SVN 2.5
but how can you add new objects
is there a new way to do it
and any min doc to begin with the new features
i mean more like a PDf than a video if available
as for anything else, it’s mostly “self documenting”
Use the new “console” spacetype it has some handy hints and you can type commands into it directly.
try
print dir(bpy.data)
or
print dir(bpy.ops)
or whatever to get more idea…
it’s mostly similar to the bpy api right now (for the bpy stuff check the 2.49 api docs for examples…)
but with a whole bunch of operators to access the built in functions that couldn’t be scripted before…
put the console space into “report” mode andit’ll “echo” the python commands as you do stuff in the interface so you can discover what these new operators and their arguments are… also many of the tooltips now indicate the python command for that button!
ok so you say that you cannot do like before
Ex: simply press the space bar and add a primitive like cube or plane …ect
that’s gone !
or is there another simple way to do it ?
and there is no doc available for theses new functions right now !
anything in site for doc to know what is new and how it works?
if not then it s going to be a nightmare to learn this 2.5 !
Thamks for the new API
looks like eveythig has been change to other names ect…
so this means that all the older script will have to be re written all over
and if i devellop new scripts right now it’s totaly useless cause it will have to be re written with new commands !
if you use the bpy api right now then the transition to 2.5 will not be too hard… anything using the blender modules will have to be re-written though.
for adding objects I thought you meant in a script, not manualy! use “shift a” to add a primitive. ( the space bar menu hasn’t been added yet… maybe it’s dropped, maybe not.
I posted a link o the new api for operators…and it’s really quite “discoverable” with the new console and the tooltips. give it a go.
i think it would be good to open a new thread in news and discussion to give tips and ideas on how to use 2.5 so we can get use to it i guess before release and be able to be productive
like i tried to change the middle nouse to pan instead of rotate and it’s not working
any idea how to change this ?
and when i look at the top user preference window
i had to use a magnifier to read theses small letters
there shoud be a law saying that you cannot write with font less than 8 !
any way to zoom in to better read theses words upt there ?
also is there a pic showing the different functions of the F1 F2 keys new functions for 2.5
the looks is great
it would be nice to begin seeing more tut PDF files showing the different new features
to help people get use to this new 2.5 !
like i tried to change the middle nouse to pan instead of rotate and it’s not working
any idea how to change this ?
for now best done in the keymap rather than the preferences…
go to outliner and select “keymaps” in the pulldown and edit away! (but they don’t save yet)(
and when i look at the top user preference window
i had to use a magnifier to read theses small letters
there shoud be a law saying that you cannot write with font less than 8 !
any way to zoom in to better read theses words upt there ?
[/quote]mousewheel zooms in there… you could also try the fancy new popup! (alt U for the shortcut or file–>preferences for the menus…
also is there a pic showing the different functions of the F1 F2 keys new functions for 2.5
I haven’t seen one… William Reynish did one but that was a proposal, not actual!
the looks is great
it would be nice to begin seeing more tut PDF files showing the different new features
to help people get use to this new 2.5 !