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?
 
Bug running a script

Bug running a script

2004-05-21       - By kim aldis

 Back
Reply:     1     2     3     4     5  

it may well work but you sailing dangerous waters. Using commands in a
scripted op and referencing objects other than through connection ports is a
serious no-no.
Have you tried a refresh in between the command, Oz?


 __ __  

From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Jabbar Raisani
Sent: 21 May 2004 15:36
To: XSI@(protected)
Subject: Re: Bug running a script


Oz,

I think that you can solve this problem by using a scripted op.
Simply get a new object ( a null for example).
Place a scripted operator on any parameter.
Place your code:

SetValue "Dog_Head.Head.polymsh.clustershapecombiner.Point_AUTO_Wt", 0

SetValue
"DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5.Came
raTxt.Freeze", False

SetValue
"DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5.Came
raTxt.Freeze", True

SetValue "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt", 1

before the Out.Value = 1 (could be any desired value, not necessarily one)

Then add a variable (you can call it "update") and place a single keyframe

on it in order to have the op update on every frame.

I have created a scene with the names matching your scene's object names.

I can send it to you off the list if you like.

Hope this helps,

  Jabbar

-- -- Original Message -- --
From: Oz Adi <mailto:oz@(protected)>  
To: XSI@(protected)
Sent: Friday, May 21, 2004 9:55 AM
Subject: HELP: Bug running a script

This pretty urgent! I've encountered a bug running a script, and I am in a
middle
of the tight project...

I am doing a camera projection on shape animated face,

I need to mute shape deformation BEFORE each frame, unlock the cam
projection-
lock it again, then turn on the shape deformation again..

it all works great when doing it MANUALY..
but when Puting it into a script it doesnt work when being run.

here's the script:

rem * mute shape animtion *
SetValue "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt", 0
rem * un lock cam projection *
SetValue
"DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5.Came
raTxt.Freeze", False
rem * Lock cam projection *
SetValue
"DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5.Came
raTxt.Freeze", True
rem * un mute shape animation *
SetValue "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt", 1

I've tried running those commands from the script editor,  one at a time
(one line script) , and it works.. running them automaticaly one after the
other (as a four line script) and it doesnt do a thing..

I even tried to make delays between each line of a few seconds.. doesnt work
as well..

I really need help on this one.. any work around? any other way of making
this autamitacly?

thanks!!!





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=343485914-21052004><FONT face=Arial
color=#008080 size=2>it may well work but you sailing dangerous waters. Using
commands in a scripted op and referencing objects other than through connection
ports is a serious no-no.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=343485914-21052004><FONT face=Arial
color=#008080 size=2>Have you tried a refresh in between the command,
Oz?</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid;
MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
 <HR tabIndex=-1>
 <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected)
 [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Jabbar
 Raisani<BR><B>Sent:</B> 21 May 2004 15:36<BR><B>To:</B>
 XSI@(protected)<BR><B>Subject:</B> Re: Bug running a
 script<BR></FONT><BR></DIV>
 <DIV></DIV>
 <DIV><FONT face=Arial size=2>Oz, </FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>I think that you can solve this problem by using
 a scripted op.</FONT></DIV>
 <DIV><FONT face=Arial size=2>Simply get a new object ( a null for
 example).</FONT></DIV>
 <DIV><FONT face=Arial size=2>Place a scripted operator on any
 parameter.</FONT></DIV>
 <DIV><FONT face=Arial size=2>Place your code:</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT size=2>
 <P>SetValue "Dog_Head.Head.polymsh.clustershapecombiner.Point_AUTO_Wt", 0</P>
 <P>SetValue
 "DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5
.CameraTxt.Freeze",
 False </P>
 <P>SetValue
 "DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5
.CameraTxt.Freeze",
 True</P>
 <P>SetValue "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt", 1</P>
 <P><FONT face=Arial>before the Out.Value = 1 (could be any desired value, not
 necessarily one)</FONT></P>
 <P><FONT face=Arial>Then add a variable (you can call it "update") and place
a
 single keyframe </FONT></P>
 <P><FONT face=Arial>on it in order to have the op update on every
 frame.</FONT></P>
 <P><FONT face=Arial>I have created a scene with the names matching your
 scene's object names.</FONT></P>
 <P><FONT face=Arial>I can send it to you off the list if you like.</FONT></P>
 <P><FONT face=Arial>Hope this helps,</FONT></P>
 <P><FONT face=Arial>&nbsp;&nbsp; Jabbar</FONT></P></FONT>
 <BLOCKQUOTE dir=ltr
 style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#000000 2px solid; MARGIN-RIGHT: 0px">
   <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV>
   <DIV
   style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:<
/B>
   <A title=oz@(protected) href="mailto:oz@(protected)">Oz Adi</A>
   </DIV>
   <DIV style="FONT: 10pt arial"><B>To:</B> <A title=XSI@(protected)
   href="mailto:XSI@(protected)">XSI@(protected)</A> </DIV>
   <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 21, 2004 9:55
AM</DIV>
   <DIV style="FONT: 10pt arial"><B>Subject:</B> HELP: Bug running a
   script</DIV>
   <DIV><BR></DIV>
   <DIV><FONT face=Arial size=2>This pretty urgent! I've encountered a bug
   running a script, and I am in a middle<BR>of the tight
   project...</FONT></DIV>
   <DIV>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2>I am doing a camera projection on shape
   animated face,</FONT></DIV>
   <DIV>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2>I need to mute shape deformation
   <STRONG>BEFORE</STRONG> each frame, unlock the cam projection- <BR>lock it
   again, then turn on the shape deformation again..</FONT></DIV>
   <DIV>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2>it all works great when doing it
   MANUALY..<BR>but when Puting it into a script it doesnt work when being
   run.</FONT></DIV>
   <DIV>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2>here's the script:</FONT></DIV>
   <DIV>&nbsp;</DIV>
   <DIV><FONT face=Arial size=2><EM><FONT color=#ff0000>rem * mute shape
   animtion *<BR></FONT></EM><STRONG>SetValue
   "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt", 0</STRONG>
   </FONT></DIV>
   <DIV><FONT face=Arial size=2><EM><FONT color=#ff0000>rem * un lock cam
   projection *</FONT></EM><BR><STRONG>SetValue
   "DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5
.CameraTxt.Freeze",
   False</STRONG> </FONT></DIV>
   <DIV><FONT face=Arial size=2><EM><FONT color=#ff0000>rem * Lock cam
   projection *</FONT></EM><BR><STRONG>SetValue
   "DOG_HEAD.HEAD.polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection5
.CameraTxt.Freeze",
   True</STRONG></FONT></DIV>
   <DIV><FONT face=Arial size=2><EM><FONT color=#ff0000>rem * un mute shape
   animation *</FONT></EM><BR><STRONG>SetValue
   "DOG_HEAD.HEAD.polymsh.clustershapecombiner.Point_AUTO_Wt",
   1<BR></STRONG></FONT></DIV>
   <DIV><FONT face=Arial size=2>I've tried running those commands from the
   script editor, &nbsp;<STRONG>one at a time</STRONG> (one line script) , and
   it <STRONG>works</STRONG>.. running them automaticaly one after the other
   (as a four line script) and it doesnt do a thing..</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>I even tried to make delays between each line of a few seconds..
doesnt
   work as well..</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>I really need help on this one.. any work around? any other way of
   making this autamitacly?</DIV>
   <DIV>&nbsp;</DIV>
   <DIV>thanks!!!</DIV>
   <DIV>&nbsp;</DIV>
   <DIV><BR>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>