Script for adding primitive buttons to toolbar

Hi,

I'm searching for a script to add basic primitives to my main toolbar so you don't have to switch tabs and click appropriate type.
I've seen one somewhere, but my searching has produced no results.

Basically I want buttons for box, cylinder, plane and line in my main toolbar or a small separate floating menu.

thx.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
airbrush's picture

Perfect...thank you!

Perfect...thank you!

Garp's picture

Something like this?

(
  global rltMyPrimitives
  try destroyDialog rltMyPrimitives catch()
 
  rollout rltMyPrimitives "My Primitives" width:140
  (
    button btnBox "Box" width:45 across:2
    button btnCyl "Cylinder" width:45
    button btnPlane "Plane" width:45 across:2
    button btnLine "Line" width:45
 
    on btnBox pressed do startObjectCreation box
    on btnCyl pressed do startObjectCreation cylinder
    on btnPlane pressed do startObjectCreation plane
    on btnLine pressed do startObjectCreation line
  )
 
  createDialog rltMyPrimitives
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.