MorphTargetChannel
סקירה כללית
MorphTargetChannel היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: A3DObject.
MorphTargetChannel.get_weight(target) מחזירה את ערך המשקל עבור יעד morph ספציפי.
מחלקה זו מצהירה על 9 שיטות עבור עצמים MorphTargetChannel בתוכניות Python. השיטות הזמינות כוללות: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. כל החברים הציבוריים נגישים לכל יישום Python לאחר התקנת חבילת Aspose.3D FOSS עבור Python. מאפיינים: channel_weight, name, properties, targets, weights.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
weights | 'list[float]' | קריאה | מקבל את המשקלים. |
channel_weight | float | קריאה/כתיבה | מקבל או מגדיר את משקל הערוץ. |
targets | 'list[Shape]' | קריאה | מקבל את היעדים. |
name | str | קריאה/כתיבה | מקבל או מגדיר את השם. |
properties | PropertyCollection | קריאה | מקבל את המאפיינים. |
שיטות
| חתימה | תיאור |
|---|---|
__init__(name: str) | Calls init(name) על מופע MorphTargetChannel זה. |
get_weight(target: 'Shape') → float | מחזירה את המשקל הנוכחי של יעד המורף המוגדר, ו-set_weight(target, weight) מעדכנת אותו |
set_weight(target: 'Shape', weight: float) | מגדיר את ערך המשקל. |
get_weight(index: int) → float | קורא ל-get_weight(index) על מופע MorphTargetChannel זה. |
set_weight(index: int, weight: float) | מגדיר את ערך המשקל. |
find_property(property_name: str) | קורא ל-find_property(property_name) על מופע MorphTargetChannel זה. |
get_property(property: str) | קורא ל-get_property(property) על מופע MorphTargetChannel זה. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
remove_property(property) | קורא ל-remove_property(property) על מופע MorphTargetChannel זה. |