Bug in Py-RoundedTube Example

On 10/11/2017 at 02:46, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   n/a 
Platform:   Windows  ;  Mac  ;  Mac OSX  ; 
Language(s) :       PYTHON  ;


the "Py-RoundedTube" example has a bug in its static SetAxis method. It references a non existing variable 'i':

Traceback (most recent call last) :
  File "'Py-RoundedTube.pyp'", line 310, in GetVirtualObjects
  File "'Py-RoundedTube.pyp'", line 40, in SetAxis
NameError: global name 'i' is not defined

It is easy to test by switching the axis orientation with the "Orientation" option in the attributes of a "Py-RoundedTube" object. It only works for "Y+". For all other variants the object simply disappears from the viewport.

Noticed with the R16 SDK version, but the issues still seems to be present in the current version of the plugin on GitHub.

On 13/11/2017 at 03:13, xxxxxxxx wrote:


Thanks for reporting this important issue in Py-RoundedTube example.
It will be fixed and the file on GitHub will be updated.