Add substitute part from context menu


Add substitute part from context menu
#1
some days ago i asked trevor to add this to lpub3d now it will be available on 2.3.12 version of lpub3d



Subject
Add an option when you right click on the PLI "brick" to add Substitute part, with a dialogue to also change color, scale, camara angels etc.
The aim is to automate the following manually entered meta commands:
Code:
0 !LPUB PLI BEGIN SUB 20844c01.dat 15
0 !LPUB PART BEGIN IGN
1 15 -160 -24 20 0 0 1 0 1 0 -1 0 0 powerfunc2distsens-1.ldr
0 !LPUB PLI END
0 !LPUB PART END
[Image: 68747470733a2f2f6170702e6769746b72616b65...3338623362]
Environment
Version of LPub3D - 2.3.12
Operating system - All
Solution
Insert, update or remove part substitution meta commands via the PLI part context menu (right-click) with a dialogue to configure the following:
Primary Arguments:
  • Part type,
  • Part colour,
Extended Arguments:
  • Scale
  • Field of View
  • Camera angle latitude
  • Camera angle longitude
  • Part rotation - Using ROTSTEP arguments
NOTE: Extended Arguments are disabled when LDView 'Single Call' render option is enabled. As this option processes multiple part model files simultaneously (i.e. on a single command call), it is not currently possible to individually apply the extended arguments to each part.
[Image: 59317748-96068880-8cc4-11e9-9df0-bc8c01638309.png]
[Image: 59317749-96068880-8cc4-11e9-8792-ab7bf08fc19c.png]
[Image: 59317750-969f1f00-8cc4-11e9-9cb0-e879ab9e8d80.png]
[Image: 59317751-969f1f00-8cc4-11e9-80df-d95741532479.png]
[Image: 59317754-969f1f00-8cc4-11e9-9706-e8f4379918e1.png]
[Image: 59317755-9737b580-8cc4-11e9-9106-55a0d055aa7e.png]
[Image: 59317757-9737b580-8cc4-11e9-977b-fcf61172e6b7.png]
[Image: 59317758-9737b580-8cc4-11e9-9a5a-48b64b054117.png]
[Image: 59317942-889dce00-8cc5-11e9-90de-18e0232c82c6.png]
[Image: 59317981-b08d3180-8cc5-11e9-96ff-05ec73ca7045.png]
[Image: 59318003-c864b580-8cc5-11e9-8d39-93ca4e17e410.png]
Reply
RE: Add substitute part from context menu
#2
Nice!!! Thanks, Victor - and Trevor!
Reply
RE: Add substitute part from context menu
#3
(2019-06-12, 14:10)Philippe Hurbain Wrote: Nice!!! Thanks, Victor - and Trevor!

OK, this is a very nice feature. When will 2.3.12 be available?

I am waiting for another bug that is fixed ;-)
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Add substitute part from context menu
#4
(2019-06-13, 14:36)Jaco van der Molen Wrote: OK, this is a very nice feature. When will 2.3.12 be available?

I am waiting for another bug that is fixed ;-)

i dont know yet.

but looks that next version will have several updates
Reply
RE: Add substitute part from context menu
#7
(2019-06-12, 14:10)Philippe Hurbain Wrote: Nice!!! Thanks, Victor - and Trevor!
With pleasure. Cheers.
Reply
RE: Add substitute part from context menu
#5
The new version its out. Inhave not tested yet.nhere its the change log

https://trevorsandy.github.io/lpub3d/ass...NOTES.html

Download https://sourceforge.net/projects/lpub3d/
Reply
RE: Add substitute part from context menu
#6
(2019-06-26, 21:39)tatubias Wrote: The new version its out. Inhave not tested yet.nhere its the change log

https://trevorsandy.github.io/lpub3d/ass...NOTES.html

Download https://sourceforge.net/projects/lpub3d/

OK, I tested the PLI part substitution and everything works up until I hit OK. Then LPub3D crashes.
I will report to Trevor on GitHub.
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Add substitute part from context menu
#8
(2019-06-27, 12:32)Jaco van der Molen Wrote: OK, I tested the PLI part substitution and everything works up until I hit OK. Then LPub3D crashes.
I will report to Trevor on GitHub.

Jaco, this behaviour has already been corrected. See Segfault in substitute part dialog #294.

To respond to tickets faster, I’ve added a Continuous Build pre-release to the production repository.

You can download a latest build for Windows (installed and portable distros), Linux AppImage, Ubuntu, Arch, Fedora and macOS.

On the LPub3D GitHub Page, you can check the existence of a continuous build pre-release if the Revision badge is greater than 0. You can also see the list of latest commits (i.e. corrections) from the Last Commit badge.

Cheers,
Reply
RE: Add substitute part from context menu
#9
(2019-06-27, 18:50)Trevor Sandy Wrote: Jaco, this behaviour has already been corrected. See Segfault in substitute part dialog #294.

To respond to tickets faster, I’ve added a Continuous Build pre-release to the production repository.

You can download a latest build for Windows (installed and portable distros), Linux AppImage, Ubuntu, Arch, Fedora and macOS.

On the LPub3D GitHub Page, you can check the existence of a continuous build pre-release if the Revision badge is greater than 0. You can also see the list of latest commits (i.e. corrections) from the Last Commit badge.

Cheers,

Ah yes, OK. I wanted to report it, but found the 294 ticket.
I will download a new build to check it out.
Jaco van der Molen
lpub.binarybricks.nl
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)