View Full Version : SetUserProp problem

06 June 2008, 10:07 AM
Hi there people.

below is a part of my code :

local i = 1
for li in lv_objects.listitems do ( -- find selected item
if li.selected == true then (
--obj = (execute("$'"+li.text+"'"))
obj = getNodeByName li.text
if obj != undefined do (
setUserProp obj "Uid" val
si[si.count+1] = i

However for some odd reason not all objects are changed. and i have no idea why.
The objects that are changed are always changed. those who are not change never change.
all objects are simple mesh objects...???

ps: both ways of seeting obj work. but the same problem... ????
using : 3dsmax VIZ 2008

06 June 2008, 11:42 AM
okey, think i have it solved.

There are some duplicated objects with the same name.

CGTalk Moderation
06 June 2008, 11:42 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.