Difference between revisions of "Command Show"

 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Command Show identifier =
+
[[Category: Typescript Commands‏‎]]
  
Displays a brief listing of the attributes of an object, showing only the attributes most commonly of interest.  Compare this to the [[Profile]] Command that displays every attribute of an object. 
+
== Command: Show ''identifier'' ==
  
= Example =
+
Displays a brief listing of the attributes of an object, showing only the attributes most commonly of interest.  Compare this to the [[Profile]] Command that displays every attribute of an object.
  
Show Va1
+
== Example ==
  
= Details =
+
:<code>Show Va1</code>
  
(new to 4.0)
+
== Details ==
The Att_Showable attribute of the Attribute object controls whether the attribute is displayed by Show.  If you create your own user-defined attribute, you can control whether it displays with the Show command by setting this meta-attribute.
+
 
 +
The [[Att_Showable]] attribute of the Attribute object controls whether the attribute is displayed by Show.   
  
 
For example, try this:
 
For example, try this:
* Create a variable Va1
+
* Create a variable <code>Va1</code>
* select Object->Attributes... -> new attribute
+
* Press ''Ctrl+' '' to open the [[typescript]] window.  Follow along with this typescript dialog:
* Enter a name: "MyAtt".  Press [Create], [OK]
 
* Press CTRL-' to open the typescript window.  Follow along with this typescript dialog:
 
Untitled> Show MyAtt
 
Attribute MyAtt
 
Title: MyAtt
 
Att_saveable:1
 
Att_showable:1
 
Untitled>
 
  
Notice that your user-defined attribute appears in Show by default.  You can see this using:
+
<pre style="background:white; border:white; margin-left: 1em;">
Untitled> MyAtt Va1: Hello world
 
 
  Untitled> Show Va1
 
  Untitled> Show Va1
 
  Variable Va1
 
  Variable Va1
Line 31: Line 23:
 
  Nodelocation: 176,88,1
 
  Nodelocation: 176,88,1
 
  Nodesize: 48,24
 
  Nodesize: 48,24
  Myatt: Hello World
+
   
 +
Untitled> show Nodesize
 +
Attribute Nodesize
 +
Att_saveable: 1
 +
Att_showable: 1
  
Now change it:
+
Untitled> Att_showable Nodesize:0
  Untitled>Att_showable MyAtt:0
+
  Untitled> show Nodesize
  Untitled>show va1
+
Attribute Nodesize
 +
Att_saveable: 1
 +
Att_showable: 0
 +
 
 +
  Untitled> Show Va1
 
  Variable Va1
 
  Variable Va1
 
  IsIn: Untitled
 
  IsIn: Untitled
 
  Nodelocation: 176,88,1
 
  Nodelocation: 176,88,1
  Nodesize: 48,24
+
</pre>
 +
 
 +
You can also set this (via typescript) to control whether your own user-defined attributes display by [[Show]]. User-defined attributes show by default.
 +
 
 +
==See Also==
 +
* [[Typescript]]
 +
* [[Commands]]
 +
* [[Attributes]]

Latest revision as of 19:09, 18 March 2016


Command: Show identifier

Displays a brief listing of the attributes of an object, showing only the attributes most commonly of interest. Compare this to the Profile Command that displays every attribute of an object.

Example

Show Va1

Details

The Att_Showable attribute of the Attribute object controls whether the attribute is displayed by Show.

For example, try this:

  • Create a variable Va1
  • Press Ctrl+' to open the typescript window. Follow along with this typescript dialog:
 Untitled> Show Va1
 Variable Va1
 IsIn: Untitled
 Nodelocation: 176,88,1
 Nodesize: 48,24
 
 Untitled> show Nodesize
 Attribute Nodesize
 Att_saveable: 1
 Att_showable: 1

 Untitled> Att_showable Nodesize:0
 Untitled> show Nodesize
 Attribute Nodesize
 Att_saveable: 1
 Att_showable: 0

 Untitled> Show Va1
 Variable Va1
 IsIn: Untitled
 Nodelocation: 176,88,1

You can also set this (via typescript) to control whether your own user-defined attributes display by Show. User-defined attributes show by default.

See Also

Comments


You are not allowed to post comments.