Open asims-al opened 1 year ago
Describe the bug Upon export of a NurbsCurve with a widths floatArray, the data written out is always a single constant value:
widths
float[] widths = [1] ( interpolation = "constant" )
Perhaps this makes sense as a default if there is no widths on the curve, but not when a multi-valued floatArray data is present.
Steps to reproduce
Open the following nurbs_curve.ma (uploaded with ".txt" extension) Note:
import maya.cmds as cmds cmds.getAttr("example_curveShape.widths") # Result: [0.004000000189989805, 0.004000000189989805, 0.00800000037997961, .... cmds.getAttr("example_curveShape.widths", type=True) # Result: floatArray
Export with root selected
export_options = { "selection": True, 'file': "export_path.usda", } cmds.mayaUSDExport(**export_options)
Expected behavior For the width floatArray values to carry over to exported.
Specs (if applicable):
Issue synced internally to EMSUSD-768
Describe the bug Upon export of a NurbsCurve with a
widths
floatArray, the data written out is always a single constant value:Perhaps this makes sense as a default if there is no
widths
on the curve, but not when a multi-valued floatArray data is present.Steps to reproduce
Open the following nurbs_curve.ma (uploaded with ".txt" extension) Note:
Export with root selected
Expected behavior For the width floatArray values to carry over to exported.
Specs (if applicable):