PPGLayout.SetAttribute.1.vbs Example

Applies To

PPGLayout.SetAttribute method

Description

This example demonstrates setting the ShowChildren attribute to hide an expression that is attached to a Parameter

Code

NewScene ,false
set oProp = ActiveSceneRoot.AddProperty( "CustomProperty", false, "HideNestedDemo" )
oProp.AddParameter3 "Foo", siInt4 
oProp.AddParameter3 "Bar", siInt4, 10
'Create a simple expression	 on Foo
SetExpr oProp & ".Foo", oProp & ".Bar * 2"
'You can comment this line out to see the effect it has
oProp.PPGLayout.SetAttribute "ShowChildren", false
'Show the CustomProperty.  
'There will be no tab for the expression
InspectObj oProp

Keywords

PPGLayout SetAttribute


Autodesk Softimage 2011