DCarpenter Posted May 13, 2011 Share Posted May 13, 2011 After making a rectangle and adding a gradient, I would typically use the Attribute Mapping Tool to manipulate the gradients exact placement, but what procedure or function do I use to do that in a script? After drawing it in VW and exporting the VScript I've found this string of commands below helpful. I understand what 74 is and the number after it but I have no idea what 71 and 72 are suppose to be or do. objectHandle := LNewObj; result := Name2Index(gradientName1); SetObjectVariableReal (objectHandle,74,0); SetObjectVariableReal (objectHandle,71,0); SetObjectVariableReal (objectHandle,72,76.2); Any help would be appreciated. Dave Quote Link to comment
DCarpenter Posted May 17, 2011 Author Share Posted May 17, 2011 ...help, anyone? Quote Link to comment
DCarpenter Posted May 17, 2011 Author Share Posted May 17, 2011 I think I found it, "SetFillOriginPoint" Dave Quote Link to comment
DCarpenter Posted May 19, 2011 Author Share Posted May 19, 2011 I was finally able to get my gradient to map correctly using: SetFillOriginPoint(handle,AGRAD.x,AGRAD.y); {begining point of the gradient} SetFillIAxisEndPoint(handle,BGRAD.x,BGRAD.y); {ending point of the gradient} but wound up not having to use SetFillJAxisEndPoint(handle,AGRAD.x,AGRAD.y); in my script. Dave 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.