Dieter @ DWorks Posted December 13, 2006 Share Posted December 13, 2006 hey, I've made a path plug-in object and i want to acces it from another script to find its path, so i can draw a polyline exactly like the object, any ideas? Quote Link to comment
Petri Posted December 13, 2006 Share Posted December 13, 2006 (edited) GETCUSTOMOBJECTPATH(objectHandle) should work. This eg. numbers vertices: PROCEDURE NumberVertices; { ? Petri Sakkinen 2002-2006 } VAR i, j, n : INTEGER; x, y, t, r : REAL; obHd, pHd : HANDLE; vx, vy : ARRAY[1..100] OF REAL; ok : BOOLEAN; BEGIN obHd:=FSACTLAYER; pHd:=GETCUSTOMOBJECTPATH(obHd); n:=GETVERTNUM(pHd); FOR i:=1 TO n DO GETPOLYLINEVERTEX(pHd, i, vx[i], vy[i], t, r); FOR i:=1 TO n DO BEGIN TEXTORIGIN(vx[i], vy[i]); CREATETEXT(NUM2STR(0, i)); END; END; RUN(NumberVertices); Edited December 13, 2006 by Petri Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.