Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π¨ Skimp | 25% Off until March 30 Buy Now
Tool Activation prevention
-
I have a plugin that i was trying to make and I do not want it to start when I have not selected a group. I thought this solution would work but it does not.
below is some part of my code . any tip would be greatly appreciated.class Testing def initialize @ip = nil @ip1 = nil @ip2 = nil @xdown = 0 @ydown = 0 @state = 0 end def activate # I was expecting it not to activate when nothing is selected at first sel = Sketchup.active_model.selection break if sel.empty? # some codes end def onMouseMove(flags, x, y, view) # some codes end end
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement