Jump to content
hooovahh

[CR] Find References XNode

Recommended Posts

looks great! does it work with FP decorations?

Oh you just had to ask didn't you.  Well I was going to reply without trying it cause I assumed it would work...turns out it doesn't.  It doesn't take much to make it work.  You have to modify the Search Filter 1D Array of String to return the item as always matching, if the search string is empty.  I'll look into adding this to the next version.

 

EDIT:  Another advantage of this is then the label input can be optional.

  • Like 2

Share this post


Link to post
Share on other sites

Okay new version posted with the changes I mentioned earlier so now it supports objects without labels.  Sorting still works with objects without labels.

  • Like 1

Share this post


Link to post
Share on other sites

I really liked this, so I couldn't resist a minor hack - I added a search method that lets you specify a regular expression (also made the method selector a type def to make it easier to add even more methods. The only downside wasn't that I can't inline the Search Filter 1D Array of strings because I've added an XNode in there in the form of the PCRE search vi - so it'll have killed performance a little.

Find References XNode 1.0.2.1.zip

Share this post


Link to post
Share on other sites

Yeah I can't remember why I didn't make that method a type def.  Regular expression is a good improvement too.  Just in most of my situations I have controls named a specific way if I want their references.  Like maybe I'll have all controls starting with "Initialize:" for controls that should be shown during an initializing state.  Then I can find all controls that start with "Initialize:" and disable them all at once.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...

Important Information

By using this site, you agree to our Terms of Use.