v7.5
指定した Unfold Property の Packing 設定を更新します。
Packing は、UV 空間で展開したアイランドが他のアイランドに対してどのように配置されるかを制御します。
oBoolean = UnfoldPackUpdate( UnfoldProperty(s) ); |
コマンドが成功したかどうかをレポートするBooleanを戻します。
/*
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"); |