IsKindOf (ProjectItem)
Description
Returns true if this object matches a given type and false otherwise. The object will always return true when queried with the string returned by its SIObject.Type property, and it may also return true for other, related types.
Scripting Syntax
ProjectItem.IsKindOf( Type )
C# Syntax
Boolean ProjectItem.IsKindOf( String in_objectType );Parameters
|
Parameter |
Type |
Description |
|
Type |
an object type |
Return Value
Examples
VBScript Example
set oRoot = Application.ActiveProject.ActiveScene.Root set oGrid = oRoot.AddGeometry( "Grid","MeshSurface" ) set oCluster = oGrid.ActivePrimitive.Geometry.AddCluster( siVertexCluster, "VextexClusterOnGrid", array(4,5,6) ) Application.LogMessage "cluster is a kind of poly? " & oCluster.IsKindOf( "poly" ) Application.LogMessage "cluster is a kind of pnt? " & oCluster.IsKindOf( "pnt" ) Application.LogMessage "cluster is a kind of edge? " & oCluster.IsKindOf( "edge" ) set oCube = oRoot.AddGeometry( "Cube", "MeshSurface" ) if oCube.IsKindOf( "Cube" ) then Application.LogMessage oCube.Name & " is a cube object" end if if oCube.IsKindOf( "polymsh" ) then Application.LogMessage oCube.Name & " is a surface mesh object" end if
Autodesk Softimage v7.5