Hello there,
I'm trying to script a rectangular plugin with some parameters concerning the tilt of a line.
The parameters should refer to each other like that:
When you enter the angle as a parameter for the tilt in the palette, the parameter for the tilt in percentage should be calculated and vice versa.
And want to this just like the reference between polar-angle and classical x/y coordinates mode. No matter which values you enter - the other parameter will be calculated.
My idea is, to do that with
GetCustomObjectInfo(objName,objHd,recHd,wallHd);
and
SetRField(objHd,GetName(recHd),?Tilt?, Num2StrF(tilt));
The problem is, that Vectorworks stops with the errors:
Line #17: SetRField(objHd,GetName(recHd),?Tilt?, Num2StrF(tilt));
|
{ Error: Expected a new factor here. }
|
{ Error: Expected a string. }
|
{ Error: Expected , }
|
{ Error: Expected a new factor here. }
|
{ Error: Expected a DYNARRAY of CHARs. }
|
{ Error: Expected ) }
|
{ Error: Did not expect this after end of statement - missing ;? }
________________________________________
Can anybody help?
Q1:
Is this the correct method to build a plugin with Parameters refering to each other?
Q2:
If it's the right method - what's the cause for the error message?
Q3:
Am I right, that it is not possible to call the function 'GetCustomObjectInfo' directly? I have to use it like a handle for example: status:=GetCustomObjectInfo...;
And with defining the status handle by that, all the other information will be retrieved an be usable for the SetRField procedure.
Q4:
Are there any examples or open source plugins where I can study the correlation between two parameters in a rectangle object.
Thank you very much,
VvierA