AlphaMark Posted January 24, 2014 Share Posted January 24, 2014 I have this line: for i,v in ipairs(getElementsWithinMarker(crimMarker)) do And it gives this error: attempt to call global'getElementsWithinMarker'(a nil value) Do u know why? Link to comment
denny199 Posted January 24, 2014 Share Posted January 24, 2014 have you included this function in your script?: for i,v in ipairs(getElementsWithinMarker(crimMarker)) do --etc end function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now