Hi, I haven't got xsi on me right now to test this. But usually this error means that you aren't supplying the right arguments. Most functions (tools) require some input. i.e. Tool(object) - you have to make sure you give it the object, this might be the current selection or a name.
In your case it needs valid curve object. `SIAddPointOnCurve( InputObj, [InsertPosition], [X], [Y], [Z], [Local], [CurveType] );` http://docs.autodesk.com/SI/2015/ENU/Softimage-Developer-Help/#!/url=./si_cmds/SIAddPointOnCurve.html See the example in the SDK guide. Hope that helps, Marco On Friday, 4 November 2022 at 19:14:36 UTC+1 [email protected] wrote: > Hey! Hope this group is not completely dead :) > Anyone remember if it's possible to invoke a tool that can't be started > with* ToolName() *command from a script? > > By running > *var toolname = ActiveToolName; * > I got > // INFO : current tool: AddPointOnCurveTool > but it says "// ERROR : Object expected" when I try to run > *AddPointOnCurveToo()* > For some tools it does work though, like *BezierCurveTool()* actually > starts the tool. > Any thoughts? > -- You received this message because you are subscribed to the Google Groups "Softimage Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/xsi_list/f6ead122-1044-4d25-85eb-bd43b79d2265n%40googlegroups.com.
