I have these lines of objects:
What I want to do is repeatedly decrease posX by 20, in total 20 times (or more)
So keep this entire block, next block of lines is gonna have posX as 2660 instead of 2680, then next block is going to be 2640 instead of 2660 etc.
Not really sure how I would approach this.
Of course I could manually duplicate the block, replace posX="2680" in the new block and repeat, but I would like to automate this.
Code:
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2645.1599121094" posZ="233.39700317383" rotX="0" rotY="312" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2616.0129394531" posZ="210.02699279785" rotX="0" rotY="1" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2632.96875" posZ="218.43699645996" rotX="0" rotY="335.99487304688" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2650.1540527344" posZ="251.81100463867" rotX="0" rotY="288" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2647.2219238281" posZ="270.71200561523" rotX="0" rotY="264" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2636.8701171875" posZ="286.76300048828" rotX="0" rotY="240" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2621.3010253906" posZ="296.90798950195" rotX="0" rotY="216" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2602.5810546875" posZ="299.91799926758" rotX="0" rotY="192" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2569.4689941406" posZ="283.11898803711" rotX="0" rotY="143.99993896484" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2584.318359375" posZ="295.07800292969" rotX="0" rotY="167.99743652344" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2560.876953125" posZ="266.33898925781" rotX="0" rotY="120" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2559.8640136719" posZ="247.63900756836" rotX="0" rotY="96" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2580.1201171875" posZ="216.18899536133" rotX="0" rotY="48" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2566.6923828125" posZ="229.68899536133" rotX="0" rotY="71.998901367188" rotZ="270"></object>
<object id="object(tmsramp)(1)" interior="0" collisions="true" doublesided="false" model="18784" scale="1" dimension="0" alpha="255" posX="2680" posY="-2598.0048828125" posZ="209.26899719238" rotX="0" rotY="24" rotZ="270"></object>
What I want to do is repeatedly decrease posX by 20, in total 20 times (or more)
So keep this entire block, next block of lines is gonna have posX as 2660 instead of 2680, then next block is going to be 2640 instead of 2660 etc.
Not really sure how I would approach this.
Of course I could manually duplicate the block, replace posX="2680" in the new block and repeat, but I would like to automate this.
Last edited: