It is currently 20 May 2013, 18:46

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Useful tool ... I think so .
PostPosted: 09 Jul 2012, 10:48 
Offline
User avatar

Joined: 25 May 2012, 16:35
Posts: 67
Location: R&M
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=2514

Sorry for my English. :)

Moderator edit: please use the URL tags
I added code tags for better readability - HB

_________________
http://www.youtube.com/watch?v=Dxv3tMyIoiM&feature=related


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group