Hello there, I’m learning how to create modules and I got this problem. I set the document width to 60.960mm but all the components are moved to left.
When the source code is created with the helper.py script this structure it looks wrong struct CoZenoWidget : ModuleWidget { CoZenoWidget(CoZeno* module) { setModule(module); setPanel(createPanel(asset::plugin(pluginInstance, “res/coZeno.svg”)));
addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));
addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
addParam(createParamCentered<RoundBlackKnob>(mm2px(Vec(28.62, 51.317)), module, CoZeno::FRECUENCY_PARAM));
addInput(createInputCentered<PJ301MPort>(mm2px(Vec(1.822, 51.322)), module, CoZeno::VC_INPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(15.404, 92.968)), module, CoZeno::OUTPUT2_OUTPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(-2.692, 93.236)), module, CoZeno::OUTPUT1_OUTPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(33.122, 93.241)), module, CoZeno::OUTPUT3_OUTPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(-2.49, 109.818)), module, CoZeno::OUTPUT4_OUTPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(15.406, 109.796)), module, CoZeno::OUTPUT5_OUTPUT));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(33.124, 109.737)), module, CoZeno::OUTPUT6_OUTPUT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(-4.541, 77.582)), module, CoZeno::LED1_LIGHT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(3.44, 77.551)), module, CoZeno::LED2_LIGHT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(11.382, 77.556)), module, CoZeno::LED3_LIGHT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(19.358, 77.545)), module, CoZeno::LED4_LIGHT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(27.301, 77.55)), module, CoZeno::LED5_LIGHT));
addChild(createLightCentered<MediumLight<RedLight>>(mm2px(Vec(35.23, 77.561)), module, CoZeno::LED6_LIGHT));
}
Do you know what am I doing wrong?
Thanks