MCPcopy Index your code
hub / github.com/BrendanParmer/NodeToPython / vec3_to_py_str

Function vec3_to_py_str

NodeToPython/export/utils.py:87–97  ·  view source on GitHub ↗

Converts a 3D vector to a string usable by the add-on Parameters: vec3: a 3d vector Returns: (str): string representation of the vector

(vec3)

Source from the content-addressed store, hash-verified

85 return f"({vec2[0]}, {vec2[1]})"
86
87def vec3_to_py_str(vec3) -> str:
88 """
89 Converts a 3D vector to a string usable by the add-on
90
91 Parameters:
92 vec3: a 3d vector
93
94 Returns:
95 (str): string representation of the vector
96 """
97 return f"({vec3[0]}, {vec3[1]}, {vec3[2]})"
98
99def version_to_manifest_str(version) -> str:
100 return f"\"{version[0]}.{version[1]}.{version[2]}\""

Callers 13

vec_to_py_strFunction · 0.85
executeMethod · 0.85
_create_nodeMethod · 0.85
_set_input_defaultsMethod · 0.85
_set_output_defaultsMethod · 0.85
_create_materialMethod · 0.85
_create_lightMethod · 0.85
_create_line_styleMethod · 0.85
_create_worldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected