Useful tool ... I think so .

Discussions about animating in SOFTIMAGE©
User avatar
Boris
Posts: 67
Joined: 25 May 2012, 14:35
Location: R&M

Useful tool ... I think so .

Post by Boris » 09 Jul 2012, 08:48

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: Select all

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: Select all

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: Select all

thisnull = Application.GetPrim ("Null", "myNull", "", "")
where the example name obviously is "myNull".

After that you may comfortably watch all this, then you are here:

viewtopic.php?f=16&t=2514

Sorry for my English. :)

Moderator edit: please use the URL tags
I added code tags for better readability - HB
Oops ,something went wrong :D