question about the Link editor

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

question about the Link editor // Archive: Tech Forum

1  |  

Post by J90 // Aug 26, 2008, 4:50pm

J90
Total Posts: 107
When editing a link editor node what attribute type is used to output an objects name?

I am not able to find it.


Thanks.

Post by frootee // Aug 26, 2008, 5:55pm

frootee
Total Posts: 2667
pic
Hi J90.


Choose Direction: OUT


Type: string


name: your choice (example: strMyName)


Then in jscript command code, use this:


params.ConValue("strMyName") = System.ThisName();


make sure you have the capitalization with the System command.

Post by J90 // Aug 26, 2008, 10:24pm

J90
Total Posts: 107
Thanks Frootee,

I meant in a non-script object such as a primitive node like in this picture below.

It has an attribute called Object Name. What attribute type was used?


This is actually part of the physEvent 3.

Under C:\<trueSpace directory here>\tS\PDFMan\resources\chapter11


Thanks again.

Post by frootee // Aug 27, 2008, 2:12am

frootee
Total Posts: 2667
pic
Hi J90. I would say, the string type was used. But I don't think I'm answering your question...


What are you trying to achieve specifically? That may help me/us guide you in the right direction.


Thanks!


Froo

Post by J90 // Aug 27, 2008, 5:00pm

J90
Total Posts: 107
Basically trying to make an object's physics enabled after two different objects collide with eachother.


For example two spheres collide triggering an event which then activates another objects physics.


from what I seen in the physevent3 scene I need to be able to get an objects name which is auto-filled in by an attribute.


I am sorry I am not able to explain it any better.

Post by trueBlue // Aug 27, 2008, 5:46pm

trueBlue
Total Posts: 1761
pic
Open the System - Kernel library and Drag & Drop an ObjectName.RsObj inside your object. Then export the Object attribute. You can then hook the Object Name output to your Event.

Post by J90 // Aug 28, 2008, 12:01pm

J90
Total Posts: 107
Thanks frootee and trueblue
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn