[Questions Plugins] Hide Groups / inactive components
-
This is also David_H's #1 feature request, if that matters......
-
I have a half-baked version that should work if the
InstanceObserver
wasn't [currently] broken in v8 [was OK in v6!]...
We await an update to the Observers... -
@tig said:
I have a half-baked version that should work if the
InstanceObserver
wasn't [currently] broken in v8 [was OK in v6!]...
We await an update to the Observers...What's broken?
I had problems in earlier versions... -
The
onOpen()
andonClose()
methods don't trigger for me in v8 - try the API example. -
They do for me - I had problems in earlier versions - at least SU7.x.
http://www.thomthom.net/software/sketchup/observers/I do now see I noted that in SU8 there's been reports that the observer might bugsplat when closing SU - though I think there are certain conditions for this...
-
I have a tool that adds an instance of the observer to every instance of every definition [it also tries to remove them first in case they already have them] - I know it's adding as it returns a message in the console as it does it.... BUT then when I open a group/instance it does NOT return a value at all! [e.g.
puts instance
] - this is on PC not OSX... -
But with the bare bone example in the API - which you refereed to - does that work for you?
@tig said:
I have a tool that adds an instance of the observer to every instance of every definition
Would it not be easier to use the
ModelObserver
for this? http://code.google.com/apis/sketchup/docs/ourdoc/modelobserver.html#onActivePathChanged -
Perhaps.
My InstanceObserver is only half-working - perhaps my code is flaky ?
Watch this space... -
I now have it working properly - I'll post something asap...
-
-
oh yeah baby!!! I can't wait for this one!
Advertisement