UnfoldPackUpdate

導入

v7.5

詳細

指定した Unfold Property の Packing 設定を更新します。

Packing は、UV 空間で展開したアイランドが他のアイランドに対してどのように配置されるかを制御します。

スクリプト構文

oBoolean = UnfoldPackUpdate( UnfoldProperty(s) );

戻り値

コマンドが成功したかどうかをレポートするBooleanを戻します。

パラメータ

パラメータ タイプ 説明
UnfoldProperty(s) Unfold Propertyオブジェクトのリスト 更新する Unfold プロパティ

JScript の例

/*

	This example demonstrates how to update the packing settings for an Unfold property

*/

NewScene(null, false);

CreatePrim("Grid", "MeshSurface");

// Set up an Unfold property on the grid and then

// set the island spacing to 0.038%

UnfoldApply("grid");

SetValue("grid.Unfold.Pack_spacing", 0.038);

// Launch unfolding + adjust + packing process

UnfoldPackUpdate("grid.Unfold");

// Now reset the island spacing to 0.03% and launch packing process 

SetValue("grid.Unfold.Pack_spacing", 0.030);

UnfoldPackUpdate("grid.Unfold");

関連項目

UnfoldAddToCut UnfoldAdjustUpdate UnfoldApply UnfoldApplySel UnfoldClearCut UnfoldRemoveFromCut UnfoldSelectCut UnfoldSetCut UnfoldUpdate Unfold Property Editor reference