[BUG][REQ] Selecting Object from library component

General discusson for Skatter for SketchUp

Moderator: jiminy-billy-bob

[BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 11:35 am

[BUG]

I started by inserting a skatter library (tall grass).

I then wanted to use the same proxy in a new surface.

I created a new skatter and went right to selecting object. I had no object on viewport as you don't get those when you insert a library.

I remembered checking component manager and there it was the tall grass proxy.

Remember I'm still with skatter pick object arrow active.

I click on component from the list and insert it in the model.

Skatter window ceases to respond and the select object icon is still looking active.

The only way to make it respond is closing skatter window and click on skatter tool icon to make skatter active again.

[REQ]

Selecting skatter objects through other means, different than picking on screen wich as several advantages:

- Picking from an in model components list would be handy because it is very difficult to distinguish components from one another, sometimes, in complex models;
- Pickinf from a folder would be most welcome, as the component might be imported to our in model component list without actually being placed in the model;
- Picking from a skatter library could allow us to filter a list of the skatter objects within a library without importing that full library;
- Picking from thea Browser.
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 11:51 am

JQL wrote:[BUG]

I'll look at this, thanks.

Btw, if you imported from the library again, the Grass Patch component would not have been duplicated.
Also, these components are actually present in the model, so they don't get purged. They are at the origin, hidden and locked ;)

JQL wrote:[REQ]

Interesting, I'll add these to the todo list.
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 11:57 am

jiminy-billy-bob wrote:
JQL wrote:[BUG]

I'll look at this, thanks.


While you're looking at this bug check it really well, because this is happening with selecting surfaces too.

If you have the select surfaces active and for some reason want to interact with model hitting the select tool, but you still haven't selected your surface, Skatter window stops responding.

I didn't try with boundaries yet, but it probably will happen too.
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 12:01 pm

I can't seem to reproduce this bug. Could you do a short video/gif?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 12:11 pm

Here it is:

In this gif what's happening is that I want to select a surface group that is nested inside another group.

When I have the skatter surface selector active first I select the group nesting the surface group, so I use SU's select tool to dive into the nested group.

When I change from the active surface selection tool, to SU selection tool skatters stops responding, so I have to shut it down and reactivate it. I hope that's clear.

It also happens with selecting objects as I stated.

surface selection.gif
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 12:38 pm

Weird, I don't see this on my side.

You're running on Win10, right? SU2015?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 12:41 pm

Can you try opening Plugins/jbb_skatter/rb/tools.rb with notepad, and add
puts tool_name
right after
def onActiveToolChanged(tools, tool_name, tool_id)
(You'll find this line almost at the end of the file, line 808)

Then try to reproduce the bug with the ruby console open, and copy/paste the output here.

Thanks
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 2:55 pm

jiminy-billy-bob wrote:You're running on Win10, right? SU2015?


Right!

jiminy-billy-bob wrote:Can you try opening Plugins/jbb_skatter/rb/tools.rb with notepad, and add
puts tool_name
right after
def onActiveToolChanged(tools, tool_name, tool_id)
(You'll find this line almost at the end of the file, line 808)

Then try to reproduce the bug with the ruby console open, and copy/paste the output here.

Thanks


Will try it asap.

Should it look like this:
---
def onActiveToolChanged(tools, tool_name, tool_id) puts tool_name
---


Or this:
---
def onActiveToolChanged(tools, tool_name, tool_id)
puts tool_name
---


Or I suppose it won't matter
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 3:05 pm

It got better. Now it still doesnt't work as it should, but when the current tool starts responding, the rest of the UI is still good. I can select another tool and immediatelly revert to the original tool wich will work.
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 3:27 pm

What does the console says?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 4:53 pm

sorry forgot about console... be right back
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 4:56 pm

I get nothing on window > ruby console, when that happens...
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 4:58 pm

Hmm, that's not right.

JQL wrote:---
def onActiveToolChanged(tools, tool_name, tool_id)
puts tool_name
---

It was this version, btw, sorry I didn't answer.
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 5:27 pm

jiminy-billy-bob wrote:Hmm, that's not right.

JQL wrote:---
def onActiveToolChanged(tools, tool_name, tool_id)
puts tool_name
---

It was this version, btw, sorry I didn't answer.


That's the one I used...
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Mon Aug 10, 2015 5:54 pm

Nothing happens in the console even when switching between sketchup native tools?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Mon Aug 10, 2015 6:37 pm

Yup I see nothing there.
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Tue Aug 11, 2015 12:46 pm

Can you paste this in the ruby console, and tell me if when you change tools, a popup appears displaying the tool's name?

Code: Select all
     # This is an example of an observer that watches tool interactions.
     class MyToolsObserver < Sketchup::ToolsObserver
       def onActiveToolChanged(tools, tool_name, tool_id)
         UI.messagebox("onActiveToolChanged: " + tool_name.to_s)
       end
     end

     # Attach the observer.
     Sketchup.active_model.tools.add_observer(MyToolsObserver.new)
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Tue Aug 11, 2015 1:49 pm

Yes it does, and the tool name appears in console too.
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Tue Aug 11, 2015 1:55 pm

JQL wrote:the tool name appears in console too.

Really?!
Well, that must be coming from the line you added to Skatter's file ^^

I don't understand anything anymore
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby NigeC » Tue Aug 11, 2015 4:03 pm

I'm not seeing it either on win7 :?
0
“It’s only impossible if you stop and think about it!”
User avatar
NigeC 
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Tue Aug 11, 2015 4:25 pm

# This is an example of an observer that watches tool interactions.
class MyToolsObserver < Sketchup::ToolsObserver
def onActiveToolChanged(tools, tool_name, tool_id)
UI.messagebox("onActiveToolChanged: " + tool_name.to_s)
end
end

# Attach the observer.
Sketchup.active_model.tools.add_observer(MyToolsObserver.new)
true
DimensionTool
SelectionTool


This is what I see
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Tue Aug 11, 2015 4:27 pm

Just to confirm : Before pasting that code snippet in the console, nothing appears in the console when you switch tools?
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Tue Aug 11, 2015 5:13 pm

Sorry Jiminy, before it didn't but now I restarted sketchup, and it does appear without the code you gave me being inserted.

I think I'll get back to testing what you wanted previously... Sorry for all the hassle!
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Tue Aug 11, 2015 5:25 pm

Console was open, I opened the model wich was giving me problems:

---- Skatter ----
Error: #<NoMethodError: undefined method `[]' for nil:NilClass>
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:606:in `block in refresh'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:601:in `each_pair'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:601:in `refresh'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:590:in `refresh_from_attributes'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:462:in `block (2 levels) in startup'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:460:in `each'
C:/Users/Joao/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jbb_skatter/rb/methods.rb:460:in `block in startup'
SketchUp:1:in `call'


skatter+console.gif
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Tue Aug 11, 2015 5:38 pm

Ok, I can reproduce this error (and fix it right away :D ), but even reproducing it doesn't give me the picking/switching-tool issue.

Do you experience that very first issue in a blank file?
The last error you posted should happen only with a file in which you have Skatter "render only" setups saved.
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

Re: [BUG][REQ] Selecting Object from library component

Postby JQL » Tue Aug 11, 2015 5:58 pm

Sorry Jiminy, I'll try reproducing it later, I can't do it right now.

But please remind me if I forget and you think it's important!
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [BUG][REQ] Selecting Object from library component

Postby jiminy-billy-bob » Tue Aug 11, 2015 6:01 pm

No problem ;)
0
User avatar
jiminy-billy-bob 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Skatter

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: