How do I tell macro choose 30 points in divide?

Hi, V5
Hoping to make my first macro for a button.
run the commands I use, they include divide and choice of 30 (I just hit enter to accept previous use of 30).

CommandHistory shows this.

Command: Divide
Command: '_SelLast
Command: _Group
Command: _Circle
Center of circle ( Deformable Vertical 2Point 3Point Tangent AroundCurve FitPoints ): _FitPoints
Command: _Delete

but as I wish it to have 30 and dont wish to have to type that in, as I normally just go with my 30, by hitting entry and continuing, how do I get the macro to do that ? without my input each time ?

is this the macro or is there other coding at start and end,
guessI need to read up on that, as is expected .

Steve

Hi @Steve1

It’s hard to know what you are trying to do since you have some commands which seem to not be applicable to the divide command.
But one tip is to use the macroeditor then type in your macro and hit the run button then you can kind of walk through your commands.

This works for me in V7 with both pre and post selection.
divide pause 30 enter

edit try this it might get you started run it from the macro editor. I’m thinking you’re doing this on a closed curve.

divide pause 30 enter enter
SelLast
circle fitpoints enter
delete

RM

Hi, I am forever doing this

select a curve
run command divide and use 30 points, rest as default
select last created (the points)
group them
run circle fit points.
delete the points

so wish I had a button that ran all that, far easier.

so I did that and then ran commandHistory , it gave me the commands, but unsure how I get it to also use 30 each time, without me having to enter the number or just tell it to continue, I normally just hit enter as I go with the 30 it last used.

so how do I get the macro to know I want 30 ?

Steve

See my edited macro in above post
RM

Hi,
would this work on an open curve with V5
I was hoping to use it in V8 but McNeel say the issue I face with imported V5 having a mess where I had an obj viewable image is to be expected . :rage:

so stuck in V5 land again.

Steve

Hi Steve -

Yes.
-wim

it works :heart_eyes:
Hi
@3dsynergy
@wim
I have right clicked standard toolbar in an unused area and chosen make a button.
have made a button named it , but I dont see a painting tool to draw the button.
sych used to be an option top right in V5.

Instead its got text. :frowning_face:

right click that text to edit the button doesnt do anything.
I did see when right clicking the blank toolbar an edit button option hence thinks r/c it and can edit it, alas no.

I wanted left click fit circle to points and right click fit line to points.

How do I get to the coding window and try doing a right click code, and also make a pretty button ?

Cheers

Steve

Hi Steve -
Gijs provided some information about icons on buttons in one of your other threads here:

-wim

Hi Wim, yes I am just doing many printscreens of the vid he posted, no x0.5 speed on it, unlike YT.

as asked…
How can I get at the coding panels etc of the button I made.
R/C does nothing, there must be a way into that button, after saving it.

i.e how to edit a custom button ?
Steve

Hi Steve -

I’m afraid I don’t know what R/C refers to. Remote Control?

At any rate, you should be able to use Shift and right-click to get a dialog such as the following:

If you really want to start customizing toolbars in Rhino 8, you’ll need to make sure to read up on user feedback on where this currently is at.

Here is one recent thread that you’ll need to read and completely understand:

-wim

its used to mean Right Click in PC jargon.

opened the svg editor, excited, like drawing buttons, however no grid to use to draw to. where is it ?
The edit bitmap had a grid, ESSENTIAL for drawing.
tried to draw a circle but it went off centre, no means of dragging circle to middle.

Cheers

Steve

new post on this.