Page Top
Page Top



Page Top
sub SynopticSelect(in_obj, objName, in_Mouse, in_Key)
	set oRoot = Application.ActiveProject.ActiveScene.Root
	set oRig = oRoot.FindChild(in_obj)
	set oObj = oRig.FindChild(objName)
	select case in_Key
		case 0
			Application.SelectObj(oObj)
		case 1
			if False = oObj.Selected then
				Application.AddToSelection(oObj)
			end if
		case 2
			Application.ToggleSelection(oObj)
	end select
end sub
Page Top
sub Right_ightFoot_C(in_obj,in_mousebutton,in_keymodifier)SynopticSelect in_obj, "Right_ightFoot_C", in_mousebutton, in_keymodifier
end sub
Page Top
sub SynopticSelect2(in_obj, objNames, in_Mouse, in_Key) 
	set oRoot = Application.ActiveProject.ActiveScene.Root
	set oModel = oRoot.FindChild(in_obj)
	set oObjs = CreateObject( "XSI.Collection" )
	For Each s in objNames
		set o = oModel.FindChild(s)
		 if not IsNull(o) then
			oObjs.Add(o)
		end if
	next
	select case in_Key
		case 0
			Application.SelectObj(oObjs)
		case 1
			set oAdd = CreateObject("XSI.Collection")
			for Each o in oObjs
				oAdd.Add(o)
			next
			if 0 < oAdd.Count  then
				Application.AddToSelection(oAdd)
			end if
		case 2
			Application.ToggleSelection(oObjs)
	end select
end sub
Page Top
dim RightSodeCon
RightSodeCon = Array(_
	"mt_spring_parent36",_
	"mt_spring_parent37",_
	"Right_Sode_Offset_F",_
	"Right_Sode_Offset_H",_
	"Right_Sode_Offset_G",_
	"Right_Sode_Offset_A",_
	"mt_spring_parent35",_
	"Right_Sode_Offset_B",_
	"Right_Sode_Offset_D",_
	"Right_Sode_Offset_E",_
	"Right_Sode_Offset_C"_
)


sub RightSodeCont(in_obj,in_mousebutton,in_keymodifier)
SynopticSelect in_obj, "HEAD_RIG", in_mousebutton, in_keymodifier
Set oObj = GetValue( "SelectionList" )(0).Model
SelectMembers oObj &".RIG_R_SODE"
end sub
Page Top
sub KEY_ALL(in_obj,in_mousebutton,in_keymodifier)

SynopticSelect in_obj, "HEAD_RIG", in_mousebutton, in_keymodifier

Set oObj = GetValue( "SelectionList" )(0).Model

SelectMembers oObj &".RIG_TRA"

SaveKey "./kine.local.pos,",, , , , False
SynopticSelect in_obj, "HEAD_RIG", in_mousebutton, in_keymodifier
Set oObj = GetValue( "SelectionList" )(0).Model
SelectMembers oObj &".RIG_ROT"

SaveKey "./kine.local.ori,",, , , , False
end sub
Page Top
SI0066.JPG
sub SHAPE_FACE(in_obj,in_mousebutton,in_keymodifier)
Set oObj = GetValue( "SelectionList" )(0).Model

SelectMembers oObj &".___FaceRig_Skiders"

set oFace = Desktop.ActiveLayout
set ooFace = oFace.CreateView("object view", "Facial panel")
ooFace.SetAttributeValue "lockstatus","true"
end sub
 
 
 
 
 
 
 
Page Top
SI0282.JPG
Page Top
function synoptic_select (in_obj, inName) {
	var oRoot = Application.ActiveProject.ActiveScene.Root;
		var myRig = oRoot.FindChild(in_obj);	
		var myObj = oRoot.FindChild(inName);
	var rtn = GetKeyboardState();
	var mod;
	// get modifier by index
	modifier = rtn(1);
	//LogMessage( "modifier = " + modifier, siInfo );
	// get modifier by argument name
	modifier = rtn("Shift");
	//LogMessage( "modifier = " + modifier, siInfo );
	var str = "";
	if ( 1 & modifier )
	{
	   str = "Shift "
	   RemoveFromSelection (myObj.model  + "." + inName);
	   AddToSelection (myObj.model  + "." + inName);
	}
	if ( 2 & modifier )
	{
	ToggleSelection (myObj.model  + "." + inName);
	   str += "Ctrl "
	}
	if ( 4 & modifier )
	{
	   str += "Alt "
	   SelectObj (myObj.model  + "." + inName);
	}
	if ( str != "" ) 
	{
	   LogMessage( str + "pressed", siInfo );
}
		else
		{
		  SelectObj (myObj.model  + "." + inName);
		}
}
Page Top
function SelectAll(in_obj)
{
	var oRoot = Application.ActiveProject.ActiveScene.Root;
		var myRig = oRoot.FindChild(in_obj);	
		var myObj = oRoot.FindChild(in_obj);

		SelectMembers( myObj + ".controlers_Facial_grp", null, null);
}
Page Top
function OpenObjView(in_obj)
{
	var oRoot = Application.ActiveProject.ActiveScene.Root;
		var myRig = oRoot.FindChild(in_obj);	
		var myObj = oRoot.FindChild(in_obj);

       SelectObj( myObj + ".FACE_RIG", null, null);
	SelectObj( myObj + ".group", null, null);



	var Layout = Application.Desktop.ActiveLayout;
	var oObjView = Layout.CreateView("Object View","ShapeRig");
	oObjView.SetAttributeValue ("lockstatus","true")
}

       
Counter: 20348, today: 14, yesterday: 11
最終更新: 2011-11-09 (水) 13:37:48 (JST) (2867d) 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