Title: SetShapingMorphWeight() changes reported morph range at runtime — expected behavior?
Hi Reallusion Python team,
I’m seeing a reproducible behavior in Character Creator 5 using RLPy that I’d like to confirm before relying on Python-driven morph edits.
Environment:
- Character Creator 5.13.2031
- RLPy API 0.8.4
- Python 3.8.8
Test morph:
- Display name:
Ear Scale - Morph ID:
cc embed morphs/embed_ear5
Fresh CC5 process / freshly loaded test project:
- minimum:
0 - maximum:
1 - value:
0
I then call:
SetShapingMorphWeight(...)
with a small requested value of approximately:
0.02
The write succeeds and reads back as approximately:
0.019999999553
However, after that write, the reported range changes to:
- minimum:
-1 - maximum:
1
instead of the original:
- minimum:
0 - maximum:
1
Additional observations:
- The maximum remains
1. - Reloading the same project in the same CC5 process restores the morph value to
0, but the reported range remains-1..1. - Fully exiting CC5 and starting a fresh process restores the reported range to
0..1. - Repeated getter reads before the first write remain stable at
0..1. - Enumerating all morphs before the write does not cause the transition.
- No project save is required for the range transition to occur.
- Other morph metadata remains stable.
This suggests the first shaping-morph write may be causing some native runtime initialization or normalization that changes the range exposed by the API.
My questions are:
- Is this range transition expected behavior after the first call to
SetShapingMorphWeight()? - Is the initial
0..1range an incomplete/uninitialized value, with-1..1being the authoritative runtime range? - Is there an initialization/update call that should be made before querying morph ranges?
- Should applications cache the initial range, use the post-write range, or query some other API for the authoritative valid range?
- Is it safe to treat this as metadata-only behavior, or can the range transition affect morph evaluation or persistence?
I have a minimal reproduction script and observations available if useful.
Thanks for any clarification.