回転ジョイントの操作に使用する。
形状の一部として保持されている設定値をプラグイン/スクリプトから容易に取得するためのインターフェイス。
xshade |
↑ |
shape |
↑ |
rotator_joint |
blend | ブレンド |
direction | 方向 |
flat | フラット |
limit | 範囲 |
pivot | ピボット(中心)座標 |
range | 範囲のオン/オフ |
rotation | 回転 |
xshade.scene().active_shape()(選択形状の取得)のように形状を取得して使用する。
blend
ブレンド。
型 :
float
print xshade.scene().active_shape().rotator_joint.blend
direction
方向。
型 :
float3
print xshade.scene().active_shape().rotator_joint.direction
flat
フラット。
型 :
bool : True : フラット、False : 階層
print xshade.scene().active_shape().rotator_joint.flat
limit
範囲。
型 :
float2
print xshade.scene().active_shape().rotator_joint.limit
pivot
ピボット(中心)座標。
型 :
vec3
print xshade.scene().active_shape().rotator_joint.pivot
range
範囲のオン/オフ。
型 :
bool
print xshade.scene().active_shape().rotator_joint.range
rotation
回転。
型 :
float
print xshade.scene().active_shape().rotator_joint.rotation