Over the last couple of days I have received a tremendous support from Hirazi. He helped me to create a tool, the idea of this tool is to create a surveillance cameras in the hands and feet of the character. What we need to do this, create a camera:
Code:
Null = 0
thisroot = Application.GetPrimCamera ("", "", "", "", "", "")
thisnull = Application.GetPrim ("Null", "", "", "")
Application.SelectObj (str (thisroot), Null, True)
Application.SelectObj ("B:" + str (thisroot), Null, Null)
Application.SetValue (str (thisnull) + ". Name", "Camera_Null", Null)
Application.ParentObj ("B: Camera_Interest", str (thisroot))
Application.SelectObj ("B: Camera_Interest", Null, Null)
Application.ParentObj ("B:" + str (thisnull), str (thisroot))
Application.SelectObj ("Camera_Null", Null, True)
If you decide to create separate buttons with the names of "Hand" "Leg" you need these lines:
Code:
thisroot = Application.GetPrimCamera ("", "myCamera", "", "", "", "")
The second string ("myCamera" in my example) defines the name of the created camera.
This works for the creation of the Null too:
Code:
thisnull = Application.GetPrim ("Null", "myNull", "", "")
where the example name obviously is "myNull".
After that you may comfortably watch all this, then you are here:
http://www.si-community.com/community/viewtopic.php?f=16&t=2514Sorry for my English.
Moderator edit: please use the URL tags
I added code tags for better readability - HB