Wings 3D Development Forum
[W.I.P.] Curve Tools plugin - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: [W.I.P.] Curve Tools plugin (/showthread.php?tid=2580)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: [W.I.P.] Curve Tool plugin - micheus - 11-20-2020

ismacou Wrote:Install the plugin using the menu File -> install plugin.
Wings responds that it installed the plugin correctly, but it doesn't load. It does not appear in any menu. What would be the problem?
Did you restarted Wings3D after this procedure?

In which OS are you running Wings3D?

tkbd Wrote:I also checked that console log, and found a following error.
I have no idea about what can be wrong for Mac Mini. The init/0 is there and setting the return to 'true' as it should be.
Did you notice if a dump file was created? It uses to have more information.

______

Sorry about any issues you already found. It's unbelievable that some issues that I already had fixed and tested before has been spotted again while I'm playing around with it. Angry
I just update the plugin file - the link is still the same above.


Remember that you need to use the option to install the plugin and restart Wings3D in order to get it updated.


RE: [W.I.P.] Curve Tool plugin - tkbd - 11-21-2020

micheus,Thank you update the plugin.
Today,I downloaded and insalled it again in Mac mini.
This time, everything went well Smile



I'm glad increase that we can does with Wings3D.
I will continue to test.


RE: [W.I.P.] Curve Tool plugin - tkbd - 11-21-2020

Progress report
The simple setting for a curve editing on Tweak mode is to assign ONLY a left click to Move.Wink
Probably other main tweak button options are ignored.
For example Assign LMB button to Move normal,scale and radial)

And ....Most Tweak option combinations were no problem.
But an error cause on AXIS option in Tweak Palette,
The case that choose a following options either.
  • Normal
  • Element Nomal
  • Element Nomal(Edges)
And try to edit for move curve elements.
Then Wings3D will crush

Code:
Dump written 2020-11-21_21-57
Version: 2.2.6.1
OS: macOS Mojave Version 10.14.6 (Build 18G6042)
GPU: Intel Inc. | Intel Iris OpenGL Engine
Window: {plugin,{curves,geom}}
Reason: {case_clause,element_normal}

Stack trace:
[{curve_tweak,do_tweak,6,[{file,"curve_tweak.erl"},{line,357}]},
{curve_tweak,do_tweak_0,6,[{file,"curve_tweak.erl"},{line,309}]},
{curve_tweak,handle_tweak_drag_event_0,2,
              [{file,"curve_tweak.erl"},{line,457}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1029}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,996}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,888}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,683}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]



RE: [W.I.P.] Curve Tool plugin - micheus - 11-21-2020

Tkbd, I'm glad you got it working in the Mac Mini.

I really prepared it to use only the Tweak Move command only, since it is the most convenient, and the axis constraints. In the future, for the freehand option (which I was working recently) I add support to magnets options.

I'm going to check that bug you reported. Thanks.


RE: [W.I.P.] Curve Tool plugin - tkbd - 11-22-2020

Hi!micheus
I made summary of Curve Tools features.
It doesn't cover all the features, but it may helpful for W3D users who interest in this plugin.

Summary for English ver.
[Image: hfVunizm.png]
(Document Updated 2020/11/28 , Title change to "Curve Tools plugin for Wings3D")

Summary for Japanese ver.
[Image: H5rTnBim.png]
(Document Updated 2020/11/28 , Same as above )

-------------

Using these features for while, and I have a question.Shy
Do you know how to make permanent w3d obj after PutOn command with LMB?
Ofcourse,I understood another way that PutON > RMB dialog's option
(Make it a permanent Wings3D object option)
but I couldn't found by LMB way.

P.S
The pen tool may also be used to trace a draft image,isn't it?
Cheers! Smile


RE: [W.I.P.] Curve Tool plugin - micheus - 11-22-2020

tkbd Wrote:Do you know how to make permanent w3d obj after PutOn command with LMB?
Of course,I understood another way that PutON > RMB dialog's option
(Make it a permanent Wings3D object option)
but I couldn't found by LMB way.
Of course I know. Biggrin
As it doesn't exists as an object at all - and one curve can generate more than one object - I decided to make this option available on the Curves Graph window - select the object and in the context menu use the option Make Permanent.

The option Update Object is used to update the Put On object when we change the Wings3D object used on it.


tkbd Wrote:The pen tool may also be used to trace a draft image,isn't it?
I'm not sure about what you cal "pen tool". Rolleyes


UPDATE - micheus - 11-22-2020

Fixed the issues and the file was updated: download


RE: [W.I.P.] Curve Tool plugin - tkbd - 11-23-2020

Humm....,I download new version and got an error and the plugin wasn't recognized.
For find of the problem. I deleted the previous time installed plugins directory and install it newly ,but got the same result.

This is the log immediately after installation.
(I did install with curves.tar file by File > Install Plug-in & Patch)
Code:
Installed plugin to /Users/user/Library/Application Support/Wings3D/2.2.6.2.gf0e56/plugins
wpc_curves_win:init/0 bad return value: {'EXIT',
                                         {undef,
                                          [{wpc_curves_win,init,[],[]},
                                           {wings_plugin,init_plugin,2,
                                            [{file,"wings_plugin.erl"},
                                             {line,184}]},
                                           {wings_plugin,init_plugins,1,
                                            [{file,"wings_plugin.erl"},
                                             {line,168}]},
                                           {wings_plugin,install,1,
                                            [{file,"wings_plugin.erl"},
                                             {line,291}]},
                                           {wings_develop,time_command,2,
                                            [{file,"wings_develop.erl"},
                                             {line,87}]},
                                           {wings,raw_command,4,
                                            [{file,"wings.erl"},{line,641}]},
                                           {wings_wm,handle_event,3,
                                            [{file,"wings_wm.erl"},
                                             {line,1030}]},
                                           {wings_wm,send_event,2,
                                            [{file,[...]},{line,...}]},
                                           {wings_wm,do_dispatch,2,
                                            [{file,...},{...}]},
                                           {wings_wm,dispatch_event,1,
                                            [{...}|...]},
                                           {wings_wm,get_and_dispatch,0,[...]},
                                           {wings,init_part2,3,...},
                                           {proc_lib,init_p_do_apply,...}]}}
wpc_curves:init/0 bad return value: {'EXIT',
                                     {undef,
                                      [{wpc_curves,init,[],[]},
                                       {wings_plugin,init_plugin,2,
                                        [{file,"wings_plugin.erl"},
                                         {line,184}]},
                                       {wings_plugin,init_plugins,1,
                                        [{file,"wings_plugin.erl"},
                                         {line,168}]},
                                       {wings_plugin,install,1,
                                        [{file,"wings_plugin.erl"},
                                         {line,291}]},
                                       {wings_develop,time_command,2,
                                        [{file,"wings_develop.erl"},
                                         {line,87}]},
                                       {wings,raw_command,4,
                                        [{file,"wings.erl"},{line,641}]},
                                       {wings_wm,handle_event,3,
                                        [{file,"wings_wm.erl"},{line,1030}]},
                                       {wings_wm,send_event,2,
                                        [{file,[...]},{line,...}]},
                                       {wings_wm,do_dispatch,2,
                                        [{file,...},{...}]},
                                       {wings_wm,dispatch_event,1,[{...}|...]},
                                       {wings_wm,get_and_dispatch,0,[...]},
                                       {wings,init_part2,3,...},
                                       {proc_lib,init_p_do_apply,...}]}}



RE: [W.I.P.] Curve Tool plugin - micheus - 11-23-2020

tkdb, I noticed something your log file that leaped to my eyes: /Users/user/Library/Application Support/Wings3D/2.2.6.2.gf0e56/plugins

This means you are making your own build of Wings3D. Which version of Erlang are you using? I'm on OTP 22.3 (the one used to build the official v2.2.6.1)


RE: [W.I.P.] Curve Tool plugin - tkbd - 11-23-2020

micheus Wrote:Which version of Erlang are you using? I'm on OTP 22.3 (the one used to build the official v2.2.6.1)
OK
I had been installed Erlang itself on my system at many years ago.
Quote:$ erl
Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V7.0 (abort with ^G)
1>
But I didn't build for Wings by using my old version Erlang/OTP for a long time.

Also, my Wings3D v2.2.6.1 app is a binary version,and it downloaded the it from the official website.
But when I ran it directly from the command line,so I got some interesting logs. Biggrin
Quote:2020-11-24T00:28:24.935034+09:00 error:
beam/beam_load.c(1883): Error loading module wpc_curves:
This BEAM file was compiled for a later version of the run-time system than 22.
To fix this, please recompile this module with an 22 compiler.
(Use of opcode 169; this emulator supports only up to 168.)
This log was never output to the normal Wings3D error or crash dump file.
I hope this helps for you.