Returns true if there is at least one Segment in the target Theme that is marked as directly compatible to the source Segment.

Assembly: psaiCoreDotNet (in psaiCoreDotNet.dll) Version: (


public bool CheckIfAtLeastOneDirectTransitionOrLayeringIsPossible(
	int sourceSegmentId,
	int targetThemeId


Type: System..::..Int32
the id of the Source Segment
Type: System..::..Int32
the id of the Theme to transition to

Return Value

Type: Boolean


If this method returns true, this means that a direct transition from the sourceSegment to the target Theme is possible. Respectively, if the target Thme is of type Highlight Layer, a compatible Segment exists that will be layered over the sourceSegment if the Highlight Layer is triggered while the source Segment is playing. If no compatible Segment exists, the trigger call will be ignored in case of Highlight Layers. For other Themes types, psai will play the shortest Sequence of compatible Segments until the target Theme is be reached. If no compatible sequence exists, you will be warned by the Psai Editor upon export / audit.

See Also