Seems that nobody got a chance to look into this or may be I am so dumb.
Still cannot understand what could be the possible reasons. The frame is normal frame not locked nothing special about it though rotated to fit on spine and I am trying to change the width. Manually I am able to change everything for this frame.
I even tried variety of things:
$.writeln("Spine2bounds are : "+spine2bounds);
$.writeln("spine2bounds New : "+spine2bounds);
And it outputs the same geometric bounds. Man I am so annoyed now.
Which version of InDesign?
Oh apologies. I should have metioned it earlier.
Do you see anything wrong in code. I suspect that.
1 person found this helpful
Yeah, there is something wrong, luckily nothing big.
You have to tall script where you are assigning new value,
you cant just add them like you did.
So, solution is this:
spine2bounds = spine2bounds+spine2diff; spine2bounds = spine2bounds+spine2diff;
Hope it helps.
How can I missed that. Just above of th
is code I did somewhat similar but missed in this case.
spine_width = spine_width+1;
spine_width = Math.round (spine_width);
Thanks tomaxxi. Appreciate your time.