Re: plotting via script

Date : Fri, 11 Jan 2008 17:28:18 +0100
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: plotting via script
My best guess is that you fail to feed the parameter list correctly to the command; to make sure it gets what it expects I usually store the parameters in a collection and use the GetAsText() method:

var oTorus = ActiveSceneRoot.AddGeometry("Torus", "MeshSurface");
var cParams = new ActiveXObject("XSI.Collection");
cParams.Add(oTorus.PosX);
cParams.Add(oTorus.PosY);
cParams.Add(oTorus.PosZ);
PlotAndApplyAction(ActiveSceneRoot, cParams.GetAsText(), "MyAction", 0, 100, 1, 20, 3, false, 0.01, true, false, true, false);


Hope that helps...

   -André


Frank Lenhard wrote:
Hi,

i am calling the plotting commands from a jscript. problem however is,
that the dialog pops up each time as if i had choosen the plot command
from the menue. any idea how to prevent that?
PlotConstrainedtransform does this.
PlotAndApplyAction however doesnt pop up the dialog, but in return
doesnt plot anything. no error logged :/


ciao franky

--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.