ScriptSpot

Forum topic · Scripts Wanted

output an array to a textbox or..

By cuatcside · 2013-11-14

Description

I have an array with some keyframe numbers stored in. when this array gets large (more than 20-25 numbers) and I output it in max listener it gets truncated and "..." will shown instead of actual keyframe numbers, How can I output this array in a text box pop up showing those frame numberes with truncation ?
Thanks.

Comments (7)

cuatcside · 2013-11-14

Does anyone know how I can update the frame field in render setting dialogue box with an array of frame numbers?
Thanks.

.

miauu · 2013-11-14


rendTimeType = 4

rendPickupFrames = "1,3,5,8,12-30"

But why the Frame field is not updated I don't know.

barigazy · 2013-11-14

Hey Kostadin,
how are you friend?
U need also to update render scene dialog.

fn addPickupFrames frameNumbers = if isKindOf framenumbers string do
(
rendPickupFrames = frameNumbers
if rendTimeType != 4 do rendTimeType = 4
renderSceneDialog.update()
)
addPickupFrames "1,3,8,1235,12-80,90-25"
--or in this case
keyArr = for i = 1 to 25 collect i
addPickupFrames (trimright (trimleft (with PrintAllElements on keyArr as string) "#(") ")")

.

miauu · 2013-11-14

Hi, Branko!
I am ill(again). :)

barigazy · 2013-11-14

Probably you are working too much.
You have to get some rest (at least one week).
Greetings to you and your family and wish you a quick recovery.

cuatcside · 2013-11-14

Thank you so much.
PrintAllElements on worked for me.
I really appreciate it.

barigazy · 2013-11-14

Use *with PrintAllElements on* context to see more then 20 array index when printing in listener

rollout test ""
(
edittext tb "" pos:[5,5] fieldwidth:440
on test open do
(
keyArr = for i = 1 to 25 collect i
tb.text = trimright (trimleft (with PrintAllElements on keyArr as string) "#(") ")"
)
)
createdialog test 450 50