• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Design & Development v
1 2 3 4 5 … 11 Next »
Scripting with Scheme and Python

 
  • 0 Vote(s) - 0 Average
Scripting with Scheme and Python

Pages (5): « Previous 1 2 3 4 5 Next »
ivla
Offline

Member

Posts: 65
Threads: 8
Joined: May 2023
#31
10-17-2023, 01:48 PM (This post was last modified: 10-18-2023, 02:49 AM by ivla.)
Next (but not last) version of script, with profile selection and acceptable thread endings.

.zip   thread20231017.zip (Size: 2.62 KB / Downloads: 2)

Some difficulties (example with profile #6):
[Image: thread03.png]
If two points in profile have the same vertical coordinate then it "glues" or "doubles" in ending profile.
Subsequent "Cleanup" helps, but it's not nice.
Thinking...
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#32
11-09-2023, 02:36 PM
ivla, thanks for sharing your scripting.

I would like to suggest you to store these files somewhere else. The space reserved for users here at the forum is very limited unfortunately.

Another advantage I see in use that is that we can just update the original file when we fix/improve something and it will be OK for all the links to it that were already spread on the forum. Smile
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
ivla
Offline

Member

Posts: 65
Threads: 8
Joined: May 2023
#33
11-13-2023, 01:54 PM
OK. got it.
ivla
Offline

Member

Posts: 65
Threads: 8
Joined: May 2023
#34
11-29-2023, 11:57 AM (This post was last modified: 11-30-2023, 03:53 AM by ivla.)
Next version of script somewhere here.  Biggrin 
v0.5 2023-11-29

Opening and closing ends now looks like this:
[Image: thread05.png]

Also added DIN13 profile (#7) for internal thread, look here for how-to.
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#35
05-13-2024, 08:33 PM
I should have a new updated build for the scripting plugin soon.
ivla
Offline

Member

Posts: 65
Threads: 8
Joined: May 2023
#36
11-06-2024, 12:38 PM (This post was last modified: 11-24-2024, 08:04 AM by ivla.)
Script for circular sectors generation
Initial version.
Makes slice of the cylinder:
[Image: sector.png]

UPD: This appears as built-in option of the "cylinder" primitive in Wings3D v2.4.
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#37
12-23-2024, 03:10 AM
Hello,

It's been a while since the last build so I should have a new build soon, there's been some changes to the "command" type scripts (as that is still a work in progress). After that I'll be making a pull request to add the scripting plugin to wings.

The plugin has also been refactored a little bit so it can be possible to add additional scripting languages without changing anything in the plugin code itself, it would require making a bunch of "init" script code and helper classes for each new scripting language though. I'll be only focusing on the two current scripting languages for now.

The plugin preference dialog now uses wings ui dialog instead of wxDialog, many thanks to micheus help to change it over.
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#38
01-08-2025, 12:29 AM
I almost have a new build, I needed to test the different new features and there's still a few small things to adjust.

Parameters will now have dropdown lists, checkboxes and radio buttons, example:

Code:
params {
  param "Width" "0.5"
  param "Height" "1.0"
  checkbox "Use feature" "true"
  menu "Type" "cube" {
    item "Cube" "cube"
    item "Cone" "cone"
  }
}

And for even more flexibility, it will also be possible to create advanced layouts by erlang term directly:

Code:
params {
  adv_params begin
    {vframe, [
      {hframe, [
        {label, ?__(1,"Label")},
        {text, 0.5, [{key,etc}]}
      ]},
      {?__(2,"Checkbox"),true,[{key,key1}]}
    ]}
  end.
}
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#39
03-07-2025, 11:16 PM
Hello,

I've gotten around to making a more recent build of the scripting plugin:

PLUGIN:
wpc_scripting_shapes.tar

PATCH:
patch_scripting.tar


Please let me know if anything seems broken.

You need to download and install both.

The patch contains modified wings_va and wings_dialog, without them the plugin's preference dialog won't work.
ivla
Offline

Member

Posts: 65
Threads: 8
Joined: May 2023
#40
03-09-2025, 03:18 AM
Great! Thank you!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode