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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Mask one point with getpts

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kmcelroy Posted - 03/30/2005 : 6:38:17 PM
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;
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 04/01/2005 : 4:24:00 PM
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.


kmcelroy Posted - 03/31/2005 : 2:05:39 PM
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;

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000