Author Topic: [script] Numerical XY Move + [plugin] NumMove  (Read 80240 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #30 on: January 19, 2014, 19:34:14 pm »
Hello Armando,

Thanks for this explanations ... but I must take time to understand that.. my knowledge of programming is a little too light currently  ??? ??? I discover VB .net and visual studio  ;)

++
David

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #31 on: February 07, 2014, 23:04:31 pm »
Hello,

A new version of the 'NumMove' plugin that adds rotations functionalities



The rotation center can be at the drawing origin (the cross), at the center of the selection , at the center of each object, or at a fixed position given in the down XYZ text boxes

Be careful, it's only lightly tested

Note that as for other rotation tools of CB, arcs and polylines that contain arcs must be 'arc removed' before rotation around X or Y axis.

With the rotation center set to 'selection', sometimes polyrectangles can cause problem to find the correct center, If you have this problem, convert first the polyrectangles to polylines.

enjoy
++
David

« Last Edit: February 08, 2014, 13:48:20 pm by dh42 »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8360
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #32 on: February 08, 2014, 03:58:33 am »
Wow... that almost replaces the transformation matrix, and in a much more intuitive way!

Good deal.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1356
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #33 on: February 08, 2014, 10:22:10 am »
Love it  ;D  David  well done.

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3026
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #34 on: February 08, 2014, 12:29:38 pm »
Nice work David. with new plugins written between you and Lloyd, Andy wont recognize his own software when he comeback.. ;) :D ;D ;D

Thanks.
« Last Edit: February 08, 2014, 12:41:41 pm by Bubba »
My 2¢

Win 10 64 bit, CB [1.0} rc 1 64 bit, Mach3, ESS, G540

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #35 on: February 08, 2014, 13:34:02 pm »
Hello,

Thanks  ;D

There is some other little things that remain to do.

- a better Key validation (cause pb to insert minus sign, and not works with fractional)

- a 'pick' function to pick an object used as center for rotation (to fit the 3 text boxes)

- ..... and the translation auto ... but it's another history I put it aside until Andy gives some help.

Quote
Wow... that almost replaces the transformation matrix, and in a much more intuitive way!

- And why not, a 3rd tab for Scaling.

Now I'm being exploring 3D surfaces, and I'll try to do some basic 3D drawing tools ...

EDIT: I add the sources in the previous message.

++
David
« Last Edit: February 08, 2014, 13:49:34 pm by dh42 »

Offline BR52

  • Wookie
  • ****
  • Posts: 336
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #36 on: February 18, 2014, 17:53:05 pm »
Hi David,

A present for you!

See here: http://www.cambam.co.uk/forum/index.php?topic=4004.msg27359#msg27359

   Armando

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #37 on: February 18, 2014, 18:34:13 pm »
Hello Armando,

Hey, nice example  :D  thanks

++
David

Offline shorton

  • Storm Trooper
  • ***
  • Posts: 119
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #38 on: March 19, 2014, 15:46:37 pm »
Hello,

A new version of the 'NumMove' plugin that adds rotations functionalities

<snip>

The rotation center can be at the drawing origin (the cross), at the center of the selection , at the center of each object, or at a fixed position given in the down XYZ text boxes

Be careful, it's only lightly tested

Note that as for other rotation tools of CB, arcs and polylines that contain arcs must be 'arc removed' before rotation around X or Y axis.

With the rotation center set to 'selection', sometimes polyrectangles can cause problem to find the correct center, If you have this problem, convert first the polyrectangles to polylines.

enjoy
++
David


DAvid, thanks.  Excuse the noob question.  How do I install?  I placed the dll in my plugins folder and restarted, but I can't see that it did anything.


Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #39 on: March 19, 2014, 16:54:03 pm »
Hello,

Quote
I placed the dll in my plugins folder and restarted
Yes, it's the correct way.

It must appears in the Edit/transform menu (or shortcut shift+ctrl+M)

http://www.cambam.co.uk/forum/index.php?topic=4064.msg27862#msg27862

++
David

Offline shorton

  • Storm Trooper
  • ***
  • Posts: 119
    • View Profile
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #40 on: March 19, 2014, 19:10:16 pm »
Thanks, found it.  And I see it apparently moves in steps relative to current position? nice.


Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #41 on: March 19, 2014, 20:39:10 pm »
Yes the move is relative to the current position.

In rotate mode, you can select the center of the rotation.

++
David

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1788
    • View Profile
    • pixelmaker
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #42 on: March 19, 2015, 13:18:25 pm »
hello David,

I have found a mistake in your plugin. I wonder that I don´t noticed this before, because this is my "most used" plugin.
The value for "bulge" would have to be inverted.
Please have a look.


ralf

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #43 on: March 19, 2015, 16:54:41 pm »
Hello Ralf,

Yes, It's very strange ; and in the code I use the same "transformation matrix" followed by a "apply transformation" ...

I'll investigate ...

Done ... the problem is that after each rotation, I "apply transformation" .. if you do the same manually with the transformation matrix and you apply the transformation after a 90° rotate, the problem is the same, the circles are modified.

In the plugin, I must apply transformation after each move/rotate, because if not, the value returned for the object center is wrong until the transformation has not been applied ... and if I run a second rotation that goes wrong ...

Note: in the plugin, the problem appears only if you rotate twice 90° but not for a 180° rotation.

Ah Ah, you are also working on a phone ... same for me .. (Iphone6 and 6+)

++
David

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1788
    • View Profile
    • pixelmaker
Re: [script] Numerical XY Move + [plugin] NumMove
« Reply #44 on: March 20, 2015, 09:00:16 am »
hello David,

yes thats a mobile. I have to finish 30 of them from PMMA till next week. Like the design in attachment. The most work are the polished buttons at the sides.

Yes, that it is. If I have a polyline the radius change the direction after "apply transformation" .
This not occurs with a polyrectangle.

ralf