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

2 posters

Go down

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

Post by ADbve Thu 10 Jun 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 10 Jun 2021, 3:22 pm; edited 3 times in total

ADbve

Posts : 72
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 15 Jun 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 : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

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 Sun 12 Dec 2021, 10:13 am

I've made a version that supports 2.80 and above.
https://github.com/zbx1425/blenderCSV/releases/tag/v-zbx-20211212

The importer is currently unusable, but the exporter should work as intended.
zbx1425
zbx1425

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

https://www.zbx1425.cn

Gothpaladinus and Midnight Express Ginga81 like 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 ADbve Sun 12 Dec 2021, 2:36 pm

Thanks zbx1425, honestly i already got this script to works several weeks after making this topic, although it only the exporting part it worked 😂.
Like you said the import part is very broken and in my version i need manually write the Load command to include the texture to the csv file.

But im gonna check your version soon.

ADbve

Posts : 72
Join date : 2020-05-14

Gothpaladinus and Midnight Express Ginga81 like 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 Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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