Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
java scripting

java scripting

2005-01-28       - By Carl Callewaert

 Back
Reply:     1     2     3     4     5     6     7     8     9  

Hello:
 In Javascript I would to make when I select an object and run the script, it
creates a bones and the root is constraint to the object that was selected.

 My problem is this, what do I need to fill in the X? How can I get the name
of the root of the skeleton that is created now?

 var a = selection (0);

 var startx = GetValue(a + ".kine.local.posx");

 var starty = GetValue(a + ".kine.local.posy");

 var startz = GetValue(a + ".kine.local.posz");

 Create2DSkeleton( startx, starty, startz, 9, 9, 9,1, 0, 0, 2, null, null);

 ApplyCns("Position", " X ", a , null);

 regards,

 carl

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;Hello: </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV style="FONT: 10pt arial">
 <DIV><FONT face=Arial size=2><FONT size=2>
 <P>In Javascript I would to make when I select an object and run the script,
 it creates a bones and the root is constraint to the object that was
 selected.</P>
 <P>My problem is this, what do I need to fill in the X? How can I get the
name
 of the root of the skeleton that is created now? </P>
 <P>var a = selection (0);</P><FONT size=2>
 <P>var startx = GetValue(a + ".kine.local.posx");</P>
 <P>var starty = GetValue(a + ".kine.local.posy");</P>
 <P>var startz = GetValue(a + ".kine.local.posz");</P></FONT>
 <P>Create2DSkeleton( startx, starty, startz,&nbsp;9, 9, 9,1, 0, 0, 2, null,
 null);</P><FONT size=2>
 <P>ApplyCns("Position", "&nbsp;X ", a , null);</P>
 <P>regards,</P>
 <P>carl </P></FONT></FONT></FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>