Jump to content
Developer Wiki and Function Reference Links ×

Controlling the mapping of a gradient


Recommended Posts

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

Link to comment

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...