Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

compareComp - Compare Components

Share your components here. First one to 100 wins!

compareComp - Compare Components

Postby greg » Sat Jun 02, 2018 12:56 pm

This compares a pair of components. It first identifies nodes that are unique to either of the two components.

Then for the nodes that exist in both components, it identifies differences in parameters, flags, input wiring, hierarchy wiring, language, tags and comments.

For nodes that are in both components, it checks the operator family and type, and reports if they are different.

It reports on DATs whose contents differ (Text, Table and the Execute DATs, and DATs that are locked).

Using "Only in Component 1" and "Only in Component 2", it shows nodes that exist in one component but not the other.

If you turn on the parameters "Flags", "Parameters" etc, it will compare the Flags, Parameters etc of nodes that are in both components, showing the differences in columns "value1" and "value2".

"Wiring" reports on the input wires of nodes including components, as well as hierarchy (bottom to top) connections of 3d object components and panel components.

"Miscellaneous" look at tags, comments and mis-matched node types.

The "Cosmetics" option checks for things that don't matter in the function of the node, like viewer state and node position in the network.

The two built-in test components illustrate the various comparisons.

The component outputs the DAT you see in the viewer.

If you turn on "Remove Unused Cols", it will make the table simpler. For example, it will not display/output column "onlyInComp2" if the parameter "Only in Component 2" is off, etc.

I don't know how many times I've wanted to know what I've changed between two versions of a component. This gives a good comparison.

compareComp doesn't check everything yet - you can add what you feel is necessary within this structure. Not implemented is locked CHOPs or TOPs, and it doesn't co-relate a node that was renamed. Nonetheless, the results are illuminating.

uploaded version 5 on June 18 2018

THIS COMPONENT IS IN THE TOOLS PAGE OF THE PALETTE OF THE OFFICIAL BUILDS AS OF JUNE 15, 2018.
Attachments
compareComp.5.tox
(14.01 KiB) Downloaded 63 times
User avatar
greg
Staff
 
Posts: 529
Joined: Tue Nov 13, 2007 1:08 am

Re: compareComp - Compare Components

Postby greg » Mon Jun 11, 2018 2:42 pm

compareComp.4.tox now reports on DATs containing differing text in Text DATs, Table DATs, the Execute DATs and DATs that are locked.

Its output is now simple, with all results contained in one DAT output and the viewer. The doc in first post is updated.
User avatar
greg
Staff
 
Posts: 529
Joined: Tue Nov 13, 2007 1:08 am

Re: compareComp - Compare Components

Postby raganmd » Mon Jun 11, 2018 3:05 pm

GREG!

I love where you're going with this... almost like it should be a COMP itself, for sure in the palette browser!
raganmd
 
Posts: 1301
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: compareComp - Compare Components

Postby greg » Mon Jun 11, 2018 11:02 pm

Thanks, yes, it will be in the next Palette actually.
User avatar
greg
Staff
 
Posts: 529
Joined: Tue Nov 13, 2007 1:08 am

Re: compareComp - Compare Components

Postby barakooda » Tue Jun 12, 2018 3:54 am

+1 to Greg`s version control
:D
User avatar
barakooda
 
Posts: 532
Joined: Fri Nov 27, 2009 5:08 pm


Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 1 guest