WS000022.JPG





var oSel = Selection;
var oCol = XSIFactory.CreateObject('XSI.Collection');
			oCol.AddItems(oSel);
			logmessage(oCol.count)
		for (var i=0; i<oCol.count; i++)
		{
		var oObj 	= oCol(i);
		var oCnsd 	= oObj.Kinematics.Constraints;
		var oNull	= GetPrim("Null",oObj+"_Sub", oObj, null);
						oNull.size =0.5
						oNull.primary_icon = 0
						oNull.shadow_icon= 4
						oNull.shadow_scaleY = 0
						ResetTransform(oNull, siObj, siSRT, siXYZ);
		var oSCO = GetConstrainedObjects(oObj);
		//var objCollection = oCnsd ;

		RemoveCns( oSCO.item(0),oCnsd );

		ApplyCns("Pose", oSCO.item(0),oNull, true);
		}

       
Counter: 29155, today: 4, yesterday: 4
最終更新: 2012-11-21 (水) 12:40:52 (JST) (2494d) 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