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

Namespace: psai.net
Assembly: psaiCoreDotNet (in psaiCoreDotNet.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public bool CheckIfAtLeastOneDirectTransitionOrLayeringIsPossible(
	int sourceSegmentId,
	int targetThemeId
)

Parameters

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

Return Value

Type: Boolean

Remarks

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