rex_patterngen
Introduction
This plugin could pick a pattern randomly.
This plugin could pick a pattern randomly.
Usage
Sample capx
Sample capx
Use "Action:Set pattern" to add pattern name and count into pattern list first, then call "Expression:Pattern" to get pattern randomly.
Or call "Action:Generate" to generate a new pattern, then get the last generated result by"Expression:LastPattern".
Or call "Action:Generate" to generate a new pattern, then get the last generated result by"Expression:LastPattern".
Expression:Pattern
or
Action:Generate -> Expression:LastPattern
Random mode
There 2 kinds of random mode -- shuffle, or random. User could image that patterns are some kinds of balls put into a box. The shuffle mode is pick a ball without put back, the random mode is pick a ball then put back each time.
There 2 kinds of random mode -- shuffle, or random. User could image that patterns are some kinds of balls put into a box. The shuffle mode is pick a ball without put back, the random mode is pick a ball then put back each time.
Manual pick
Sample capx
"Expression:ManualPick" could pick the specifics pattern manually. It will change the remain balls in the box in shuffle mode.
Return "" if picking failed, i.e. the box dose not have this kind of ball.
Sample capx
"Expression:ManualPick" could pick the specifics pattern manually. It will change the remain balls in the box in shuffle mode.
Return "" if picking failed, i.e. the box dose not have this kind of ball.
Pattern count
Get total count of patterns by "Expression:TotalCount". Get count of remain patterns by "Expression:RemainCount".
Get total count of patterns by "Expression:TotalCount". Get count of remain patterns by "Expression:RemainCount".
Debugger
User could see the remainder patterns at debugger panel, just like how many balls in this box now.
User could see the remainder patterns at debugger panel, just like how many balls in this box now.
Reset pattern list
Call "Action:Remove all patterns" to clean pattern list, then use "Action:Set pattern" to add patterns. Or use "Action:Remove pattern" to remove a pattern from list. See the changing at debugger panel.
Call "Action:Remove all patterns" to clean pattern list, then use "Action:Set pattern" to add patterns. Or use "Action:Remove pattern" to remove a pattern from list. See the changing at debugger panel.
Add pattern count
Sample capx
Call "Action:Add pattern" to increase or decrease pattern count, it also affects remain patterns. i.e. unpicked patterns.
Sample capx
Call "Action:Add pattern" to increase or decrease pattern count, it also affects remain patterns. i.e. unpicked patterns.
Retrieve patterns
Use "Condition:For each pattern" to retrieve each pattern in a for each loop. It has 4 sorting methods, sorting by pattern name in ascending/descending order, or sorting by total pattern count in ascending/descending order.
Get pattern name by "Expression:CurPatternName", total pattern count by "Expression:CurPatternTotalCount", and remain pattern count by "Expression:CurPatternRemainCount". The loop index in this for each loop is "Expression:LoopIndex".
Use "Condition:For each pattern" to retrieve each pattern in a for each loop. It has 4 sorting methods, sorting by pattern name in ascending/descending order, or sorting by total pattern count in ascending/descending order.
Get pattern name by "Expression:CurPatternName", total pattern count by "Expression:CurPatternTotalCount", and remain pattern count by "Expression:CurPatternRemainCount". The loop index in this for each loop is "Expression:LoopIndex".
Save/load
Sample capx
This plugin supports official save/load feature.
Or get content by "Expression:AsJSON" to save states of current pattern gen, then call "Action:Load" for loading manually.
Sample capx
This plugin supports official save/load feature.
Or get content by "Expression:AsJSON" to save states of current pattern gen, then call "Action:Load" for loading manually.