Get orientation of face under cursor

It sounds like to me you would learn a lot by examining the example parametric extensions by the SketchUp Team. One is the Shapes extension, another is a Window extension. There are several others as well.

Just for general information, a material can be assigned to a component definition, and this definition material is used temporarily as the instance is attached to the cursor, but as soon as the instance is placed the use of the definition material ceases. This is good way to use highlight colors.

Component Instances will do this automatically, if you set the snap_to property of the definition’s behavior. Say for example that you wish to place a framed photograph component instance whose definition is set to snap_to vertical.

There are some threads here already:

1 Like