Update
This commit is contained in:
17
2023/scripts/rigging_tools/ngskintools2/api/internals.py
Normal file
17
2023/scripts/rigging_tools/ngskintools2/api/internals.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def make_editable_property(propertyName):
|
||||
return property(lambda self: self.__query__(**{propertyName: True}), lambda self, val: self.__edit__(**{propertyName: val}))
|
||||
|
||||
|
||||
def influences_map_to_list(influencesMapping):
|
||||
return ','.join(str(k) + "," + str(v) for (k, v) in list(influencesMapping.items()))
|
||||
|
||||
|
||||
def float_list_as_string(floatList):
|
||||
"""
|
||||
returns empty string for None and []
|
||||
otherwise, returns a list of floats, comma delimited
|
||||
"""
|
||||
if not floatList:
|
||||
return ""
|
||||
|
||||
return ",".join([str(i) for i in floatList])
|
||||
Reference in New Issue
Block a user