vcCommand vs vcHelpers.Application

Hi there!

I noticed that UIs for Python Add-ons can be created in two ways:

  • using a vcCommand object, then adding properties with the createProperty method
  • using a vcHelpers.Application.DialogObject object, then adding properties with the addProperty method

I would like to only use one of them in all of my scripts.
Could someone indicate pros/cons of choosing one over the other?

Thanks!

vcHelpers are just some Python scripts on top of the same Python API of VC itself.

They make some common things easier to do, but I wouldn’t consider them part of the official API and thus may change in incompatible ways between versions.

You can find those vcHelper scripts from the Python folder under the VC installation directory.

1 Like