Comparing Device Objects [Solved]

Posted on
Fri Mar 23, 2018 8:45 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Comparing Device Objects [Solved]

You can subscribe at any point in your plugin's execution. However, that's of limited value really since there currently is no way to unsubscribe. It's on the list but unclear when it'll make it into a build.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Mar 23, 2018 9:02 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Comparing Device Objects [Solved]

Thanks Jay - that's what I thought you might say. I've settled on an approach that actually seems to work pretty well. I have a flag (True or False as the case may be) and if the flag is changed then I invoke a plugin restart. If the flag is True, subscribe -- otherwise don't subscribe.

Mine is a pretty fringe case for the Multitool plugin and won't seem out of place given its intended purpose.

+1 for unsubscribe. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Oct 15, 2018 2:43 pm
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Comparing Device Objects [Solved]

Hi Dave,
Just wanted to say a BIG THANK YOU for taking the trouble of getting this all worked out - your code example is proving very useful in helping to debug my new TRV plugin (currently in development) :D

Posted on
Mon Oct 15, 2018 3:57 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Comparing Device Objects [Solved]

Hey, even a blind squirrel finds a acorn once in a while!

Glad that it’s been helpful.


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 1 guest