Wish: Ability to enter a numerical value for the Dolly zoom

Seems like there is some error. This is the message I get when I try to build it:

Sorry i forgot to add the python script, put it in the same folder with dollyzoomslider.rhc

slider.py (3.6 KB)

I added it and the proper directory link, however, the following error message appears:

You can use any icon and name it zs
Than in the script change the fileName (line number 41)
or you can simply remove this line

Thanks, I finally made it work on my Rhino! :slight_smile: Works just as you showed in your video. I have two questions:

  1. Is it possible to set the initial position of the slider to be lower or to remember its position within the current session? The slider always pops over the Standard toolbar icons and I have to move it every time to a lower position.

  2. How to make those tiny vertical lines for the increment darker? My default background is darker, so those lines are nearly invisible in my Rhino. :slight_smile:

1: The position is fixed , you can change (x,y) in the line 101

2: I have no idea about this, maybe you can set the background color to black

self.BackgroundColor = drawing.Colors.Black

image

Thanks, just changed the position to 350, 175, in order to conveniently place it exactly where my mouse pointer was upon clicking the icon that evokes the pop-up slider. :slight_smile:

Black slider appears too dark to me, so I guess I will just leave it intact.

The colors are related to Eto form, maybe a Mcneel developer can help you with that

@curtisw

I tried to replace “Black” with “Grey”, but it returned an error. Ideally, it would be best to be able to set 3 values for a RGB colour or a HEX code. :slight_smile:

The color name appears automatically after the point and use Gray instead of Grey

#self.BackgroundColor = drawing.Colors.Gray
self.BackgroundColor = drawing.Color.FromArgb(255,10,10,255)
#FromArgb(red: int, green: int, blue: int, alpha: int)
#red: The red (0-255)
#green: The green (0-255)
#blue: The blue (0-255)
#alpha: The alpha (0-255)

Hmmm, I can’t make it work after placing the same code inside… Maybe I have to place it in a different line? It returns the following error message:

Select the lines and use Tab in keyboard to align them with previous line

It still does not work. Another reason why I’m not a programmer, haha. :slight_smile: Can you make the script with a light grey for those increment lines for the and post it here? :slight_smile:

The color is of the window , not the increment lines

slider.py (3.8 KB)

Thanks, it works now. I had to delete the line with the icon directory, because it evoked an error message again. But at least now I can experiment with the background colour to make it closer to my liking. :slight_smile:

However, the numerical field is no longer white. It’s gray instead and a bit difficult to read the numbers. I will have to see if there is a line in the code that controls that, too. :slight_smile:
OK, looks like I did it somehow. :space_invader: Here are my current settings:
slider.py (4.0 KB)

In my opinion, both scripts by @maje90 and @seghierkhaled must be native display commands in Rhino 8. They are very usable! :100: Especially Rhino modelers operating in the architectural field will like them a lot.

You can always use BackgroundColor to change color of the control

I found how to do it, cheers. :clinking_glasses:

Hi, this is still WIP

Hi -

RH-70130 DollyZoom: Allow a value to be entered

RH-70129 UndoView: Doesn’t work after DollyZoom
-wim