i've created a little complicated scene [IMG][/IMG].there're 11 balls as emitter.i want phxsource001 to pick sphere001,phxsource002 pick sphere002 and so on.if do it by hand ,that will be too slow.i heard it'll be faster by doing it in maxscript.but i don't know maxscript,can anyone help me?
Announcement
Collapse
No announcement yet.
maxscript in phoenix fd
Collapse
X
-
Code:srcname= stringstream "" objname=stringstream "" for i=1 to 10 do ( seek srcname 0 seek objname 0 format "sphere%%%" (i/100) (mod (i/10) 10 as integer ) (mod i 10 as integer) to:objname format "phxsource%%%" (i/100) (mod (i/10) 10 as integer ) (mod i 10 as integer) to:srcname seek srcname 0 seek objname 0 srcn=getnodebyname (readline srcname) objn=getnodebyname (readline objname) srcn.sources.count=0 srcn.sources.count=1 srcn.sources[1]=objn )
______________________________________________
VRScans developer
Comment