XGen interactive grooming spline with varying width to legacy XGen conversion?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way for XGen interactive grooming spline with varying width to legacy XGen conversion?
I'd like to import XGen igs curves with varying width(controlled with Taper, Width Ramp, etc) into legacy XGen.
First I've tried igs cache(Alembic curves + write final width enabled). Its too heavy to manipulate when the model is composed of 10K or 100K curves.
Then I've tried "From XPD File" approach in legacy XGen. CVs data exported by `xgSplineDataToXpd` was correctly read, but width information was lost. Also, Taper, Width, etc attribute in legacy XGen does not work for XPD curve data(but Width Ramp attribute does)
After glimpsed `xgSplineDataToXpd` sample plugin, width attribute was constant over CVs.
Even though we can export per-CV width in XPD in our own way, but this will break the primitive data format used in
"From XPD File" option in legacy XGen so would not work.
I'm ok to write a python or C++ plugin if importing curves with per-CV width into legacy XGen can be done with XGen API.