BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help me fix this openbve plugin for blender

Go down

Help me fix this openbve plugin for blender Empty Help me fix this openbve plugin for blender

Post by ADbve Thu Jun 10, 2021 8:15 am

hello

a few months ago i saw a plugin to make openbve addon in blender but unfortunately that plugin only works in blender 2.79 not 2.8 above. so i try to fix it myself, long story short i only have fix the object and material tab, because learning blender code is very difficult i give up to fix it Sad , so because i already done with this code i want this community to continue this code and make it better.

i think what need to be fixed is :
-way to registering operator
-changes in matrix command multiplication
-filepath for exporting and importing csv files
-prepare for significant python change for blender 2.9 above

below is screenshot and link i use to fix this plugin maybe you can use it better than me.

Help me fix this openbve plugin for blender Export11
Help me fix this openbve plugin for blender Import11
Help me fix this openbve plugin for blender Object11Help me fix this openbve plugin for blender Materi11

links: 
https://blenderartists.org/t/2-80-cheat-sheet-for-updating-add-ons/1148974

https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API

https://wiki.blender.org/wiki/Reference/Release_Notes/2.81/Python_API

https://wiki.blender.org/wiki/Reference/Release_Notes/2.82/Python_API

https://wiki.blender.org/wiki/Reference/Release_Notes/2.83/Python_API

https://theduckcow.com/2019/update-addons-both-blender-28-and-27-support/

plugin links: https://drive.google.com/file/d/1H6-1IUCzxkxIjvNoMuOZnolDq2WASI-s/view?usp=drivesdk

note:
-this plugin forked from this repo https://github.com/maisvendoo/blenderCSV
-i want this plugin works in blender 2.83 lts because in lts version the pyhon API not gonna change so it easier to work.


Last edited by ADbve on Thu Jun 10, 2021 3:22 pm; edited 3 times in total

ADbve

Posts : 22
Join date : 2020-05-14

Midnight Express Ginga81 likes this post

Back to top Go down

Help me fix this openbve plugin for blender Empty Re: Help me fix this openbve plugin for blender

Post by zbx1425 Tue Jun 15, 2021 2:58 pm

This might be a bit difficult, because the material system of Blender went through a complete change in 2.8. Now you draws a diagram instead of using predefined options. This is the source of the "use_transparency" bug, and you'll encounter more after fixing this because the whole system has changed. This means the code that handles material export needs to be rewritten.
Probably one can refer to the built-in plugins to see how they handles it. Blender seems to provide a helper class to handle simple scenarios.
zbx1425
zbx1425

Posts : 136
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Midnight Express Ginga81 likes this post

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum