ScriptSpot

Forum topic · General Scripting

Hide layer by clicking on object inside xref scene?

By Christopher Grant · 2010-05-19

Description

We use xref scenes a lot and I'd like a way to simply click on an object in view and hide it's layer. It's not as simple as a pickbutton because the objects in an xref scene aren't accessible like regular objects are...

So - I want the script to let me click on an object (that's inside an xref scene), get the layer name that object is on and turn off that layer. Any ideas how I'd do it?

Thanks,

Comments (1)

Christopher Grant · 2010-05-19

Now that I think about it I'm thinking this should be an exercise using intersectray... Definitely open to suggestions on how to implement it though.