Need a little help with Ruby Programing
-
Need a little help. I have the plugin drill, which will drill a round hole though a selection, from face to face. However with other plugins, I see that the when the cursor is close to my selection it will show that this vertex has been selected with a red "X". Using drill this does not happen. I wish to modify drill so this happens.
So I am trying to pick out from other plugin, just what part of the code makes this happen.
On another note, I notice in the ruby console, that while running drill, there seems to be some errors, however, I will address them later.
Thanks in advance for your help.
Ken
-
Oh yeah, did you post this a week or two ago too? This request sounds oddly familiar. I even looked at the code (maybe it was a different plugin though?, this sounds all too familiar). Anyhow, it is a matter of adding this method to the plugin:
draw(view) ip.draw view end
Something like that. The variable "ip" will need to be changed to match the variable name the script uses for the "inputpoint". And it might require adding the line
view.invalidate
to the end of theOnMouseMove
method. Do you have a copy of the plugin I could look at? Is it hosted on Didier's script site? -
No, this is my first post on this subject. Thanks for the help.
My problem, was I didn't even know where to look for this info. I have looked at the API post, but couldn't find anything that helped.
Again thanks for your help.
Ken
-
That is odd, I am 100% sure I read this request recently.
Anyhow, it will take a little more work than the small snippets I posted. I see it needs an OnMouseMove method added to it. I can probably figure out what it needs today. Porbably after my Sunday aftertnoon nap/Football game watching. So maybe in the next 6 hours or so I'll post what you need.
Chris
-
There was an thread like this not too long ago.
The topic crops up from time to time.
Advertisement