Skip to content

2017 API dlibrary.vectorworks.AbstractActivePluginParameters

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.vectorworks.AbstractActivePluginParameters

Abstract base class to easily work with the plugin parameters.

Vectorworks will always give you the initial values of parameters. So when changing them inside your script, you'll still get the initial values. Therefore we'll create some sort of cache to remember the current values. Just make sure you only instantiate one of this class per script run in order to not miss the cached values.

Using this will enable you to transform parameters and adjust them to defaults etc... without the rest of your script having to worry about this. Your IDE will also be very happy to find the actually parameters by name.

Base classes

  • object The most base type

Constructor

__init__(self)

Methods

get_parameter(*args, **kwargs)

set_parameter(self, name: str, value)

Sets the parameter to the given value, type depends on the plugin parameter.

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally