This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level.

§ 16.90.5.46 - stack (SceneScript element)

 <stack

The  <stack command, or it's synonym  <push, is used to take a complete copy of the current environment and save it on a stack of such information. The information stack may be up to 1024 deep; if you get over 1024 levels deep, further stacking commands have no effect.

Typically,  <stack or  <push is used to save the current state, unusual and/or extensive changes are made for a particular object or group of objects, and the the  <unstack language element (or it's synonyms,  <pop and  <pull) are used to restore the previous state.

This is a classic "programming stack", in the sense that the first thing you push onto it will be the last thing pulled off.

Here is the general concept:

Set up initial set of conditions Create the objects that use those conditions  <stack (a copy of the current conditions is saved) Modify the initial conditions as extensively as you like Create objects using the modified conditions  <unstack (copy taken off the stack overwrites the changes) Create further objects using initial conditions
Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
WinImages F/x, Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions
WinImages F/x Manual Version 7, Revision 6, Level A

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 218
box