Notifications
Clear all

[Closed] thePainterInterface.getHitPointData

sorry guys. but I have problem with this piece of script:


 For i = 1 to (thePainterInterface.getHitCount()) do
 (
 thePainterInterface.getHitPointData &localHit &localNormal &worldHit &worldNormal &radius &str i
 box pos:worldHit
 )
 

I get error :

Unable to convert: undefined to type: Point3

And I am completely lost. It happens after painting stroke. And I am not sure but I have fealing that something like this worked. thanks

1 Reply

Try pre-declaring the variables before passing them by-reference to the function.
According to the documentation, they are In and Out parameters, so you have to predefine them, pass their pointers to the function and it will write its results back into the memory of these variables.