vcanim.gif (8357 bytes)SW_deleteExpressions
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


SW_deleteExpressions

A library function which allows users to delete the expressions that reference a given track name and elements from the left-hand side whose names match a regular expression pattern.

package require SW

SW_deleteExpressions elementNamePattern trackName [sceneID]

elementNamePattern
A regular expression pattern which specified the element(s) whose expressions are to be deleted.
trackName
Specifies the track name (such as etrnx or roty) to search for. Pass NULL to delete all expressions on the elements specified by the elementNamePattern parameter
[sceneID]
Specifies the scene to use. This is an optional parameter, if it is omitted the current scene is used.

Examples

  • Delete the rotx expression on all elements in the current scene whose names begin with sph.
    SW_deleteExpressions sph.* rotx
  • Delete all expressions on elements whole names end with left.
    SW_deleteExpressions .*left NULL

Note that this routine uses Tcl regular expressions, so .* matches anything. In this respect SW routines differ from SWC routines which use a file like syntax, where * matches anything.

See Also

SW_expression
SW_exprValue
SW_exprValueT

Behaviors Overview ] Behavior Evaluate ] Behavior Edit ] Debugger ] Console ] Find ] SAA Library ] SW library ] SWC library ] SWN library index ] SWU library ] Attributes Index ] Scripting Examples ]

copyright Video-Collage Inc.