[MacOS] How to get ready Wings3D Scripting Plug-ins - tkbd - 04-13-2023
I tried to edb's wings3D script plugin enviroment get ready on MacOS.
It successfuly,so I wanted share infomation.
(It took me few hours to figure out all the information nessesary.)
Scripting with Scheme and Python by edb
http://www.wings3d.com/forum/showthread.php?tid=3096&pid=16842#pid16842
How to the setting
- Install Wings3D script plugin http://www.wings3d.com/forum/showthread.php?tid=3096&pid=16842#pid16842
- Download wings script pack , and unzip https://github.com/elblake/wings-scripts-pack
- Install Home Brew package manager and Command line tools(Xcode) https://brew.sh/
- Install Interpreters (Gauche and Python3) by Home Brew
- set each Path of the Interpreters
- set each Path of wings script pack
I decided to used two Interpreters on MacOS
Python Interpreter : Python3
Scheme Interpreter : Gauche(gosh)
In MacOS,It is easy install them by using HomeBrew pakage manager.
Also nessesary install Command Line Tools for Xcode.
If you not install Command Line Tools of Xcode yet
Run terminal.app,and type a following for install them.
Code: sudo xcode-select --install
brew install python3
brew install gauche
Next if all install are success...
Run Wings3D and open menu ...
Edit > Plug in-preferences > Script Preference
Switch to "Interpreters" Tab,
and Fill settings for "Python Interpreter Path" and "Scheme Interpreter Path" - /usr/local/Cellar/gauche/0.9.12_3/bin/gosh
- /usr/local/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/bin/python3.11
Current Issue:
In currently it not support symbolic link.
So I should set full path.
Code: e.g.
/usr/local/opt/python@3
/usr/local/Cellar/python/3.6.4_4
/usr/local/Cellar/gauche/0.9.12_3
FYI for trouble shooting:
If interpreter file path contains wrong space or wrong name,or wings chash.- wpc_scripting_shapes:command/3: bad return value: {error,interpreter_not_found}
- "Unknow POSIX error" Dialog open when tried Heighmap,Panda3D and Godot exporter plugin
Code: DEBUG: Traceback (most recent call last):
DEBUG: File "/Users/*******/Library/Application Support/Wings3D/2.2.9/plugins/wpc_scripting_shapes_init/init.py", line 25, in <module>
DEBUG: sys.stdin.reconfigure(encoding="utf-8")
DEBUG: AttributeError: 'file' object has no attribute 'reconfigure'
NOTE: Script runtime exited with code: 1
FYI for miscellaneous:- You need to set file path of gosh, If you installed gauche(Scheme Interpreter)
- HomeBrew prefix command tell you where install to files
- How to get a text of the file path quickly? , Drag and Drop the file from finder to termnal window
- Krita can create ppm image file.The Size is 32x32px,But too large size(256x256px)cause Wings3D's Freeze.
- About Raw file format and test data : http://paulbourke.net/dataformats/povraw/
- About off file and test data: https://en.wikipedia.org/wiki/OFF_(file_format)
::: Shapes tab ::For primitive mode)- new_shape_pixel_art : py , "Pixel Art Shape","Take an icon (.pgm) and turn it into rows and columns of cubes"
::: Commands tab ::For Body mode)
simple_shape_effects- Body mode : "Wavey Translate",scm,"A wave is translated into the points of the object, creating a wavey surface, most useful to apply to a multisegmented plane."
- Body mode : "Distorted Scaling",scm, "The amount of scaling applied on each point depends on its location by sin(x), sin(y), sin(z), such that some points get scaled more than others, creating a distorted effect."
::: Importer/Exporter tab :::- raw_triangle_importer : scm ,Raw Triangles (.raw) (POV
- Ray RAW triangle format)
- object_geom_importer & exporter : scm, Object Geometry (.off)
- ms3d_importer & exporter : py , Milkshape3D (.ms3d) ,Milkshape3D Text (.txt)
- panda3d_exporter : py, Panda3D Egg (.egg)
- irrlicht_exporter: py , Irrlicht Mesh (.irrmesh)
- heightmap_export : scm, Bitmap 16
- bit Height Map (.pgm)
- godot_exporterer : py , Godot Mesh Library (.tres)
Summary of Wings3D Script Plugin setting on MacOS
Godot
Bitmap
Pixel(pgm)to 3d mesh
WaveyTranslate
RE: [MacOS] How to get ready Wings3D Scripting Plug-ins - edb - 04-15-2023
Hi tkbd,
Thank you for documenting and creating very nice charts for setting up scripting on mac os.
|