-this simple script for change navigation from XSI to Maya in xsi software-
#XSI TO MAYA
false = 0
True = 1
x = Application.GetValue("preferences.Camera.navaltkey");
if x == 0:
Application.SetValue("preferences.Camera.navaltkey", 1, "")
Application.SetValue("preferences.Camera.navaltmapping", 1, "")
Application.LogMessage( "maya user" )
else:
Application.SetValue("preferences.Camera.navaltkey", 0, "")
Application.SetValue("preferences.Camera.navaltmapping", 0, "")
Application.LogMessage( "xsi user" )
5.11.09
28.10.09
27.9.09
Auto null
oObj = Application.Selection(0)
Application.LogMessage( oObj.FullName )
Application.GetPrim("Null", "", "", "")
Application.SetValue("null.null.shadow_icon", 1, "")
Application.SetValue("null.null.primary_icon", 1, "")
Application.SetValue("null.null.shadow_colour_custom", True, "")
Application.SetValue("null.null.R", 1, "")
Application.SetValue("null.null.B", 0.5, "")
Application.SetValue("null.Name", "oTARGET" , "")
Application.MatchTransform ("oTARGET", oObj)
Application.LogMessage( "MatchTransform_done" )
Application.SetValue("oTARGET.Name", "mastercnst_" + oObj.FullName, "")
Application.LogMessage( "rename done" )
Application.LogMessage( "all DONE" )
cara penggunaan
1. select object
2. jalankan scriptnya
22.3.09
Subscribe to:
Posts (Atom)