Get

get object property

Reports a property of an object in the current project. The first input is the name of an object, a color, or a page. The second input is a property name.

Following is a list of the properties each object can have:

Page:	turtles, texts, buttons, sliders, melodies, sounds,

music, videos, audiocds, colordemons

Turtle:	visible?, rule, on?, own Button:	pos, size, rule, on? Slider:	pos, showname?, limits, value Text:	visible?, pos, size, transparent?, showname?, text Color:	turtlerule, turtlemode, mouseclick Melody:visible?, pos, on?, showname?, instrument,

volume, tempo

Sound:	visible?, pos, on?, showname? Music:	visible?, pos, on?, showname? Video:	visible?, pos, on?, showname? AudioCD: visible?, pos, on?, showname? announce: pos question:  pos

Note: Melody objects are those created by using the Melody Editor while music objects are those created by importing music in MIDI format.

The following examples assume that the objects are in the project.

show get "t1 "rule

forever [fd 1]

show get "t1 "on?

true

show get "button1 "rule

launch [page1]

show get "text1 "size

160 100

show get "t1 "own

speed 12

show get "question "pos

354 132