The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Mask one point with getpts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kmcelroy

USA
13 Posts

Posted - 03/30/2005 :  6:38:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7 SR4
Operating System: XP

I want to be able to mask one point at a time instead of a range. Here is my script, which works if two different points are selected, but will not mask anything if the same point is selected twice.

def EndToolBox {
mks1 = _indx[1];
mks2 = _indx[2];
mark -w1 %C;
};
getpts 2;

kmcelroy

USA
13 Posts

Posted - 03/31/2005 :  2:05:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here's a workaround that I found, but if anyone has another solution, let me know. Basically, I click on the one point I want to mask, but three points are masked and two points are immediated unmasked, leaving the one point I wanted masked.

def EndToolBox {
mks1 = _indx[1];
mks2 = _indx[1]+2;
mark -w1 %C;
mks1 = _indx[1]+1;
mark -wd %C;
};
getpts 1;
Go to Top of Page

greg

USA
1380 Posts

Posted - 04/01/2005 :  4:24:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not sure what your goal is ...

Here is a script that lets you double-click all day and will toggle the mask value of the selected point :

dotool 3;
// dotool -d;
def pointproc {
maskval = %C<index>;
if(maskval==1)
%C<index> = 0;
else
%C<index> = 1;
}

Press Esc or click the Pointer tool when you are done. If you uncomment the "dotool -d;" then the script will act on single-clicks.


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000