QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: krabidix on July 31, 2023, 10:37

Title: NanoTube Wrapper
Post by: krabidix on July 31, 2023, 10:37
Hi,
Can we use the script for Builder plugin tools for e.g for TubeWrapper ?
I didn't find any attributes in BulkConfiguration class for most of the plugins.


Best regards,
Krabidix
Title: Re: NanoTube Wrapper
Post by: Anders Blom on August 3, 2023, 20:40
The plugins that are scriptable will not appear as methods for a particular class, but rather as separate functions, generally. The TubeWrapper functionality is at the moment not available in a ready script function, but the AddOn is released in open source, so can actually quite easily reverse-engineer it. Depending on your version, the file is located in slightly different locations, but in U-version on Windows it's C:\Program Files\QuantumATK\QuantumATK-U-2022.12-SP1\atkpython\Lib\site-packages\AddOns\TubeWrapper\TubeWrapperPlugin.py. You basically just need to extract the method applyTo() and the displacement function and use angle and z_rise as parameters.