Hi Pascal
I wrote this macro. To locked the object looked translucent
_SetObjectDisplayMode
_Ghosted
_Lock
If the object was selected before running the macro then the command is executed without question. But if I first run the macro, then in the command line have to choose the sub-commands.
QUESTION
Can I combine my macro in one piece?
So it become not necessary to answer the questions on the command line?
In the process of implementation of the basic commands I must always press Enter to confirm.
But there are some commands that do not require confirmation.
example: CPlane, Point, Scale, Offset, Mirror, Show and many others.
Can I remove the confirmation for some commands? Within such commands as Lock, Boundingbox, Hide…
I would like to get an instant command execution.
Algorithm is as follows:
start command>>
select object (without press Enter when done)>>
execution (without press Enter when done)
That’s because you can select multiple objects with the command. Even if you use “Select” before the command, you will still have to confirm when you are done selecting objects - UNLESS you preselect them all before running the macro.
There is no “SelectOneObject” command in Rhino, it can be done, but you would need to have a script at that point, not a macro
For me, the following macro is about as good as it gets:
Hi leex, the downside of your macro or a script is that you will end with a ghosted object once you Unlock the object. You might get similar results by globally setting a transparency for locked objects in one or all your desired displaymodes. There is no macro or script required and it returns to regular display once you unlock it.
I am not sure if this is what you are looking for or not. This will allow you to select multiple objects and set there display modes at the same time in all viewports.
interesting script
I think that it is possible to do a quick aid of visualization with different light sources and materials.
A kind of rendering soft)
By the way where can I find such a script to do the math based on the weight of the material density of the material and data on the volume of 3d models?
Helped to quickly find weight in metals, glass, plastic, wood …