Can a series of commands be recorded and played for the next pick?

Hi,
V5
In photoshop one can create a new action then hit record, do what you wish to a photo, hit stop, then play that action on the next photo and the same things you did are carried out. Some things cannot be actioned, but things that are repeatable can.
Imagine there is a command called RecordCommands.
If I run RecordCommands and then select a wriggly curve sort of straight, carry out divide and enter value 100 then line through points then set the result to a layer and delete the points and wavy line,can I then play that command on the next curve I click ?

Steve

Hi Steve - there is no such thing in Rhino I’m afraid.

-Pascal

Essentially you are talking about command macros.
As Pascal said there is no recording/playback tool in Rhino as you described.

You could use the Command History as a starting point to manually edit a macro.
You would need to learn a few macro related command so your macro could stop and prompt you to pick a point, enter a value, or whatever might need to change between each time you ran it.

Very doable, but not automagically recorded.

1 Like

Hi, Oh well.
Might this be a good wish list ?
meanwhile can I make a button to run a python script, if some clever soul could do a script for it to run :-

I select a wriggly line, then hit the button, or we could have it even more clever, hit the button and it asks to pick a curve.
I need it to do the following :-
divide
prompts for how many (if it cant prompt then 100)
select last created objects
Group them
Line through points
delete points (they are still active so that happens if I hit delete)
delete original wavy line. (not vital)

I will have the recipient layer ticked beforehand, as I dont suppose script could ask me to select destination layer.

Can the bold be scripted by some kind and clever soul and posted here or as a download please ?

What I am doing is running a section line through a mesh using project and a line, then chopping of bad parts, converting line to points, getting a straight line out of the result.
in a few areas for alignment etc.

Steve

The button macro on the left works for Post selected curves
The one on the right assumes you have Preselected the curve.

They both stop and ask for the number of segments.
I can’t delete the original curve.

Post select
! Divide pause pause
SelLast
Group
LineThroughPt
Delete

Preselect:
Divide pause enter
SelNone
SelLast
Group
LineThroughPt
Delete

2 Likes

Thanks John,
didnt spot reply so belated thanks.
for repeating that command thats works fine.

Cheers

Steve