I'm trying to import a module (I think that's the right term) and then run it on the active object
In the console I can type:
> from bl_operators.uvcalc_smart_project import main > main(C, .02, 30, 0.03, True, True)
... and it does smartuvproject on the active object.
In my script I have:
from bl_operators.uvcalc_smart_project import main bpy.context.view_layer.objects.active main(C, .02, 30, 0.03, True, True)
... and the console says that "name C is not defined"
I realise I'm missing something pretty basic here, to do with how a function is applied to an object in Blender scripts.
Perhaps the answer is, "go away and learn python." But this stuff is so Blender-specific (maybe even Blender 2.80 specific) that I'm not sure I'm going to find the answer anywhere except here!
Thanks in advance.