Control the display of different graphics attributes at specific time intervals during animation
Graphics <ObjectPath> CustomIntervals {Action} [<Parameters>]
The Graphics CustomIntervals command allows you to control graphics during selected intervals of time.
Note: Before changes made using this command will take effect, you must issue the Graphics SetAttrType (Vehicles) command.
Valid values for {Action} and <Parameters> can be:
{Action} | <Parameters> | Description |
---|---|---|
Clear | N/A | Removes all display intervals from the custom interval list. |
Add | <NumIntervalPairs> "<StartTime1>" "<StopTime1>" ["<StartTime2>" "<StopTime2>"...] [{AttributeOption} {Action}] | Adds an interval to the list of display times so that if Graphics SetAttrIntervals is set to CustomIntervals, object graphics only appear during the intervals set using this command. The number of "<StartTime>" and "<StopTime>" value pairs to be entered depends upon the <NumIntervalPairs> specified. |
Replace | <NumIntervalPairs> "<StartTime1>" "<StopTime1>" ["<StartTime2>" "<StopTime2>"...] [{AttributeOption} {Action}] | Replaces the current interval list with the one specified using this command. The number of "<StartTime>" and "<StopTime>" value pairs to be entered depends upon the <NumIntervalPairs> specified. |
Edit | [{EditAction} | "<StartTime>" "<StopTime>"] {AttributesOption} {Action} | {EditAction} can be All, Default or
AllIntervals. If you don't specify an {EditAction}, you must
specify a "<StartTime>" and "<StopTime>".
If {EditAction} is All, all intervals, including the default interval, will be modified. If {EditAction} is AllIntervals, all intervals except the default interval will be modified. If {EditAction} is Default, the baseline graphics attributes will be modified. For all options, you must specify at least one {AttributeOption} {Action} pair. |
Remove | "<StartTime>" "<StopTime>" | The interval matching the "<StartTime>" and "<StopTime>" will be removed. |
Load | "<FilePath.int>" | Loads a file that specifies interval pairs and uses those pairs as the custom intervals. The file must be in the STK interval list file format and end with a .int extension. |
Import | "<TimeComponent>" | Adds the intervals specified in the
Interval or Interval List "<TimeComponent>" as custom
intervals.
For information about "<TimeComponent>" see Component Specification. |
Deconflict | N/A | Resolve any conflicting intervals by checking for overlaps. If an overlap occurs set the previous interval's stop time to the current interval's start time. Using this method, only stop times are changed. |
Refer to the Graphics Basic (Vehicles) command for a list of valid {AttributeOption} {Action} pairs.
To turn On custom intervals for the ERS1 satellite in the current scenario:
Graphics */Satellite/ERS1 SetAttrType CustomIntervals
To add an interval between the hours of 12 am and 2 am:
Graphics */Satellite/ERS1 CustomIntervals Add 1 "1 Jul 2000 00:00:00.00" "1 Jul 2000 02:00:00.00"
To set custom intervals so that the ERS1 satellite in the current scenario displays in green (Color Index #8) between the hours of 12 am and 2 am:
Graphics */Satellite/ERS1 CustomIntervals Edit "1 Jul 2000 00:00:00.00" "1 Jul 2000 02:00:00.00" show On Color 8
To set custom intervals so that the ERS1 satellite in the current scenario displays red (Color Index #5) between the hours of 2 and 6 am:
Graphics */Satellite/ERS1 CustomIntervals Edit "1 Jul 2000 02:00:00.00" "1 Jul 2000 06:00:00.00" show On Color 5
To add intervals from the specified interval list time component:
Graphics */Satellite/ERS1 CustomIntervals Import "Satellite/Satellite1 AccessFac1 Interval List"
Resolve any overlapping intervals for ERS1:
Graphics */Satellite/ERS1 CustomIntervals Deconflict
If activated, Connect returns an acknowledgement message.
This command belongs to the following group(s):
10
STK Programming Interface 11.0.1