[PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Note that alterations to the YSFlight .EXE is forbidden
Post Reply
Deleted User 2704

[PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

It made for adding function exporting YSFLIGHT SURF(.srf)!
It will work with upper Blender 2.75!

https://github.com/pasutisu/exportsrf
Last edited by Deleted User 2704 on Thu Feb 11, 2016 2:44 pm, edited 2 times in total.
Deleted User 2704

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by Deleted User 2704 »

Currentry developing dnm import method
User avatar
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1726 times
Contact:

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by decaff_42 »

This SRF exporter seems to work great! I was able to export a mesh from Blender 2.75 and import the generated SRF in Blender 2.49 with no errors.

Will there be an import SRF script developed? I find that tool frequently used in my work in Blender 2.49.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
Deleted User 2704

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by Deleted User 2704 »

Released.
explodesrf is a little present.
https://github.com/pasutisu/exportsrf
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly »

mrmofumofu wrote:Released.
explodesrf is a little present.
https://github.com/pasutisu/exportsrf
For those who have only Blender 2.6x this script can be installed after changes in scripts string:
'blender' : (2, 75, 0),
Replace this string to next:
'blender' : (2, 60, 0),
After this save and install as other plugins for Blender 2.6x
http://wiki.blender.org/index.php/Doc%3 ... on/Add-Ons
--
@mrmofumofu, hope that you will make import scripts soon.
Please, make it!

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

I suggest upper 2.75 because I tested only that.
BMesh is currently experimental so do so.
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly »

mrmofumofu wrote:I suggest upper 2.75 because I tested only that.
BMesh is currently experimental so do so.
I dont yet test latest scripts, but previouse version I can normally run inside Blender 2.69 after manipulation described in comment above.
But, for my opinion "exportsrf" is bad name for it. Maybe try rename to "export_srf"?
Anyway, THANKS FOR IT!
Be wait for "import_srf" and "import_dnm".

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

I will implement Decaff's idea "reducing SURF filesize".
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

importmqo added
X axis reverse bug fixed
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly »

mrmofumofu wrote:It will work with upper Blender 2.75!
Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

u2fly wrote: Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons
You forked my source so I understood you will be improbe my code yourself.
Please do it by yourself!
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly »

mrmofumofu wrote:
u2fly wrote: Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons
You forked my source so I understood you will be improbe my code yourself.
Please do it by yourself!
I don't work on it, only give a news about Blender API upgrading, thats all.
Do what you want and keep us in course when you make updates.
The only target for fork was make reserve copy of it, thats all, nothing personal.
Currently I'm work only on GUI for "ysradar.py" from Eric.
--
I also test your "export_dnm.py", and resulted DNM sometime has wrong parenting or orientation and export process always give me error notification while save to DNM

Code: Select all

Traceback (most recent call last):
File "/initrd/mnt/dev_save/blender/2.77/scripts/addons/export_dnm.py", line 259, in execute
  fp.write(surf.srf())
File "/initrd/mnt/dev_save/blender/2.77/scripts/addons/export_dnm.py", line 168, in srf
  if self.obj.parent.type == 'MESH' \
AttributeError: 'NoneType' object has no attribute 'type'


location: <unknown location>:-1

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

u2fly wrote:I don't work on it, only give a news about Blender API upgrading, thats all.
Do what you want and keep us in course when you make updates.
I can not test that ver,so can do nothing.
And I do not obligated to support.
It not stable so support by yourself.
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

exportsrf ver 2.2 released.
Environment difference option added.
Thanks for utachy(flip normals)!

(AFTER 2.0+, EXPORTSRF IS NOT LICENSED OPEN SOURCE LICENSE BY MY POLYCY.)
Last edited by Deleted User 2704 on Mon Jan 09, 2017 3:04 am, edited 1 time in total.
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

exportsrf ver 3.0 released
* single filed
* add importsrf/dnm
* unshadow added to importmqo

Thanks for debugging Utachy and Sasha!
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly »

mrmofumofu wrote:exportsrf ver 3.0 released
* single filed
* add importsrf/dnm
* unshadow added to importmqo

Thanks for debugging Utachy and Sasha!
Is this "mofumofu.py" same as it was on pastebin, posted on mChat?

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

I forgot.
Deleted User 2704

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by Deleted User 2704 »

ver 3.1
*Added setting rotate axis
*Fix some bug
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests