ungoliath
04-10-2009, 11:36 AM
I can't get the parent child link to form. When it gets to the readdelimited string " " it craps out. Can anyone tell me why? Also I'm not sure if this ($.parent = $BoxParent) is the best way to call the parent file.
I've already got a set of points that are the names specified for Box Parent.
f = openfile "c:\\NameSizePosTimeAssy.csv"
if (f != undefined) then
(
skiptonextline f
while not eof f do
(
sliderTime = 0
BoxName = readdelimitedstring f ","
Xsize = readValue f
Ysize = readValue f
Zsize = readValue f
Xpos1 = readValue f
Ypos1 = readValue f
Zpos1 = readValue f
Time = readValue f
DelXpos = readValue f
DelYpos = readValue f
DelZpos = readValue f
BoxParent = readdelimitedstring f " "
Box length:Xsize width:Ysize height:Zsize mapcoords:on pos:[Xpos1,Ypos1,Zpos1] isSelected:on name:BoxName
$.parent = $BoxParent
move $ [DelXpos,DelYpos,DelZpos]
)
I've already got a set of points that are the names specified for Box Parent.
f = openfile "c:\\NameSizePosTimeAssy.csv"
if (f != undefined) then
(
skiptonextline f
while not eof f do
(
sliderTime = 0
BoxName = readdelimitedstring f ","
Xsize = readValue f
Ysize = readValue f
Zsize = readValue f
Xpos1 = readValue f
Ypos1 = readValue f
Zpos1 = readValue f
Time = readValue f
DelXpos = readValue f
DelYpos = readValue f
DelZpos = readValue f
BoxParent = readdelimitedstring f " "
Box length:Xsize width:Ysize height:Zsize mapcoords:on pos:[Xpos1,Ypos1,Zpos1] isSelected:on name:BoxName
$.parent = $BoxParent
move $ [DelXpos,DelYpos,DelZpos]
)
