PrimalSense: JavaScript user's object property

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
koolezt
Posts: 15
Joined: Sat Dec 15, 2007 1:00 pm

PrimalSense: JavaScript user's object property

Post by koolezt »

Based on the documentation

Code: Select all

When working with classes or objects, PrimalSense displays pop-up lists containing available members, such as methods and properties.
I'm trying to get PrimalSense to work with my user-created JavaScript object's property, but no joy. Here's a simple example.

Code: Select all

function point3d(strName,numX,numY,numZ) {
    function radius() {return Math.sqrt((numX*numX)+(numY*numY)+(numZ*numZ));}
    this.description=strName+': '+radius()+'('+numX+', '+numY+', '+numZ+')'
}
var o3d=new point3d('demo 3d point',0,100,200);
WScript.Echo(o3d.description);
I expect a PrimalSense popup in the last line after typing o3d.desc, but nothing happens. Despite the Primal(non)Sense, the script runs correctly. Am I missing a special setup step or is this a wish-list item?

Update: The version is Professional 2007 v4.5.564

Edits: correcting typos & including version

koolezt
2008-03-22 13:12:17

User avatar
Alexander Riedel
Posts: 7524
Joined: Tue May 29, 2007 4:43 pm
Answers: 1
Been upvoted: 2 times

PrimalSense: JavaScript user's object property

Post by Alexander Riedel »

PrimalSense does not support dynamically created function objects at this time.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.