SpaceshipGenerator icon indicating copy to clipboard operation
SpaceshipGenerator copied to clipboard

Fix:Comments in .py files

Open SahanChan opened this issue 4 years ago • 4 comments

Gave some life to the python code by adding comments. ;-)

SahanChan avatar Oct 27 '19 06:10 SahanChan

Just curious, has this been tested under 2.8?

zircher avatar Oct 27 '19 20:10 zircher

Just curious, has this been tested under 2.8?

Yeah, it is tested, they are just comments. XD

SahanChan avatar Oct 28 '19 01:10 SahanChan

My policy with comments is they should explain why you are doing something, rather than simply repeating what the code is doing.

For example, from my version:

def define_tex_coords_common() :
    # creates a node group that defines a common coordinate system
    # for all my image textures.
    ...

def define_hull_colour_common() :
    # creates a node group that applies the grunge factor to
    # an input colour to produce an output colour.
    ...

def define_normals_common() :
    # defines a node group for the normal-mapping texture to be used
    # across different hull materials.
    ...

etc, etc.

ldo avatar Jan 20 '22 00:01 ldo

Yup you are right :))

SahanChan avatar Jan 21 '22 03:01 SahanChan