Creating multiple objects of different (Specified) sizes and offsetting by 30mm
I'm a beginner to all this scripting so please don't be annoyed if this is an easy question to answer.
I'm currently writing/piecing together a script (the best I can) for an easier workflow at my work regarding the creation of a unit that can have multiple arrangements.
I'll give you an example of what i would like to do...
I want to be able to have multiple selections within the Rollout to create a fully built unit. Each object needs to be offset by 30mm when finally created. I'm having a hard time trying to envisage how I would write it out when say, "I have an object 48mm wide and then I need the next object created to be offset from the edge of the 48mm object by 30mm, then so on and so on for all other created objects.
I know it's very brief and I can elaborate more if needed. What I currently have within the script is so basic its laughable. I've managed to map 3 buttons to 3 different objects so far, 2 of these buttons create a box of a specific size and adds a uvw map with box mapping attached. The other button is a button to merge a specific max file within my scene... (These are only test objects for the script might I add)
Obviously I'm not expecting someone to come and write my script and I'm sorry if it comes across that way, seen as the script I have at the moment is so simple compared to what I'm wanting to achieve. Just looking for some helpful nudges in the right direction and such.
Here is my current script if you want to laugh at it :)....
Obviously the attached bitmaps and .max file wont work within your scene but hopefully you'll get the jist.
rollout NebrakTemplateTool "Nebrak Template Tool" ( button Merchant6 "Merchant6" button BevMax "BevMax" button Venta "Venta" on Merchant6 pressed do ( Box name:"Merchant6" length:800 width:1080 height:1830 select $Merchant6 macros.run "Modifiers" "Uvwmap" $.modifiers[#UVW_Map].maptype = 4 meditMaterials = VRayMtl () meditMaterials.texmap_diffuse = Bitmaptexture fileName:"I:\NEBRAK\Vending\Vending Machine Images\Crane\merchant6.jpg" meditMaterials.texmap_diffuse.alphaSource = 2 $.material = meditMaterials ) on BevMax pressed do ( Box name:"BevMax" length:800 width:1181 height:1830 select $BevMax macros.run "Modifiers" "Uvwmap" $.modifiers[#UVW_Map].maptype = 4 meditMaterials = VRayMtl () meditMaterials.texmap_diffuse = Bitmaptexture fileName:"I:\NEBRAK\Vending\Vending Machine Images\Autobar Branded\BevMax 4_Black_Plain.jpg" meditMaterials.texmap_diffuse.alphaSource = 2 $.material = meditMaterials ) on Venta pressed do ( mergeMAXFile "I:\NEBRAK\MODELS\Max_Models\Jonnie Models\Panini_Machine.max" ) ) createdialog NebrakTemplateTool