SI0002.JPG

Jscripts

Page Top


Page Top
Everything is expanded.Everything is shortened.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
 
 
 
 
 
 
-
-
|
-
|
!
|
|
|
|
|
|
|
|
|
!
 
-
-
|
|
!
!
var oSel = Selection(0);
var oSub = oSel.SubComponent;
var oCol = oSub.ComponentCollection;
var nullname = "CC_P_";
var digit = 3;                     
var oObj = oSub.Parent3DObject;  
var oGeo = oObj.ActivePrimitive.Geometry;
for (i = 0;i <oCol.count; i++){
 
            id = id_string( i, digit );
    CreateClusterCenterWithNull(oCol(i), 2);
    
    var oNull = Selection(0);
    logmessage(oNull);
    SetValue(oNull + ".null.primary_icon", 4, null);
    SetValue(oNull +  ".null.size", 0.5, null);
    SetValue(oNull +  ".Name", nullname + id , null);
 
    
}
 
function id_string( in_num, in_digit ) {
    id = ("00000").slice( 0, in_digit -String(in_num).length ) +in_num;
    return(id);
}
 }
Page Top

#comment


       
Counter: 8604, today: 3, yesterday: 1
最終更新: 2011-11-17 (木) 18:01:56 (JST) (2861d) by Land-Y
GoogleWiki
WikiMenu

ホーム ニュース フォーラム UserBlog 道場Wiki
Powered by XOOPS Cube Legacy 2.1.7 2001-2009 XOOPS Cube Project
cvELD.net project [ Softimage & XSI道場 ] since 2004 1/1