- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I am writing a script using NodeEventCallback to save an object's nameChanged: and geometryChanged: to 2 arrays.
ObjChangedName and ObjChangedGeom
When the script is run, it does append to the arrays but as a ID or handle. What I need is the object name to populate a multilistbox rollout.
global Obj, ObjChangedName = #(), ObjChangedGeom = #()
try
(
callbackItem = undefined
gc light:true
)
catch
(
)
fn CallbackFunc1 NodeEvent1 Obj =
(
appendIfUnique ObjChangedName Obj
)
fn CallbackFunc2 NodeEvent2 Obj =
(
appendIfUnique ObjChangedGeom Obj
)
callbackItem = NodeEventCallback mouseUp:true delay:1000 nameChanged:CallbackFunc1 geometryChanged:CallbackFunc2 Obj
When run this the content of the 2 arrays are
ObjChangedName is #(#(50770), #(50813))
ObjChangedGeom is #(#(50813))
What I need is the object names.
I also noticed that the geometryChanged: event does respond to move/rotate/position changes
I guess this is a 2 part question post.
I'd appreciate any help please.
Solved! Go to Solution.