             else
                 console.log "ERROR: bad object type #{opts.obj.type}"
 
-        if opts.set_frame?
-            @set_frame opts.set_frame
-
         @render_scene true
 
     animate: (opts = {}) ->

    # always call this after adding things to the scene to make sure track
    # controls are sorted out, etc.   Set draw:false, if you don't want to
    # actually *see* a frame.
    set_frame: (opts) ->
        opts = defaults opts,
            color     : @opts.foreground
            thickness : .4
            labels    : true  # whether to draw three numerical labels along each of the x, y, and z axes.
            fontsize  : 14
            draw      : true

        ###
        if Math.abs(x1 - x0) < eps
            x1 += 1

            @init_light()

            # set background color
            @opts.background = new THREE.Color @opts.background...
            @element.style.background = @opts.background.getStyle()

            if @opts.foreground?
                @opts.foreground = new THREE.Color @opts.foreground...
            else
                @opts.foreground = new THREE.Color()
                {h, s, l} = @opts.background.getHSL()
                if h >= 0.5
                    @opts.foreground.setHSL(h-0.5, s, 1-l)
                else
                    @opts.foreground.setHSL(h+0.5, s, 1-l)

            if @opts.frame_color?
                @opts.frame_color = new THREE.Color @opts.frame_color...
            else
                @opts.frame_color = @opts.foreground

            @opts.callback? undefined, @

