getVBL: Difference between revisions
Jump to navigation
Jump to search
(New page: {{MacroFunction |name=getVBL |proposed=false |trusted=true |version=1.3b90 |description= This function saves Vision Blocking Layer (VBL) shapes. |usage= <source lang="mtmacro" line> drawV...) |
No edit summary |
||
Line 22: | Line 22: | ||
''Example:''<source lang="mtmacro"> | ''Example:''<source lang="mtmacro"> | ||
[h:rectangle = "{'shape':'rectangle','x':50,'y':50,'w':100,'h':200,'r':45,'fill':1,'thickness':1,'scale':0}"] | [h:rectangle = "{'shape':'rectangle','x':50,'y':50,'w':100,'h':200,'r':45,'fill':1,'thickness':1,'scale':0}"] | ||
[r:vblData = getVBL( | [r:vblData = getVBL(rectangle , 0)] | ||
</source><br /> | </source><br /> | ||
Revision as of 12:10, 8 June 2016
getVBL() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.3b90
This function saves Vision Blocking Layer (VBL) shapes.
Usage
drawVBL(shape,format)
This function retrieves the found shape in the given shape.
Parameters
shape
- A json object as described in drawVBL().format
- Boolean. 0 returns a json object similar to the one you feed it. 1 returns an array of coordinates which covers the VBL found in the area
Example:
[h:rectangle = "{'shape':'rectangle','x':50,'y':50,'w':100,'h':200,'r':45,'fill':1,'thickness':1,'scale':0}"]
[r:vblData = getVBL(rectangle , 0)]