Parametric shelf

Hey! I have problems with my script. I’ve been looking for a solution for too long, so I’m counting on your help now.

  1. I do not know why the number of segments/crossbars on the shelf is greater than 12. I can not find dependencies.

  2. I do not know why cutting holes in segments/crossbars are two times smaller than it should be.

I am enclosing the script.

shelf _ (61.4 KB)

Your definition is very big (and it uses some plug-ins I don’t have)…
To receive help it would certainly help posting a simpler version of your problem and/or explaining what (and how) are you trying to achieve.
(Having to look inside your definition to understand what you wanted to do might discourage someone… and you’ll get no reply at all)