Batch process for adding rotate-yz-range –90, 90 to scenery?

ricomon35

SceneWright
Question for scripters:


Is there a batch process script available, that can add the two lines below to scenery configs? :eek:


rotate n
rotate-yz-range –90, 90


where (n = 0 or 1) scenery roll off/on.


If not, is this possible to write and distribute for all of route makers?




Rico
 
AssetX has a scripting facility that would make this task trivial.

http://trainz.shaneturner.co.uk/tutorials/index.php/home/utilities/pevsoft-trainz-tools/assetx

Of course, you can't do it for built in assets or payware. Not sure why you would want 'rotate 0' if you are specifying a rotate range.

Thanks Dan:

I thought about AssetX as the way to go, but I wasn't sure if I could use it with TANE (sorry, I should have specified my Trainz version).
I read on another thread here http://forums.auran.com/trainz/showthread.php?63264-Asset%B7X-FAQ/page61 that ianwoodmoore is using AssetX with TANE, so it must be working :)

The rotate 0 or 1 is the on/off toggle in order for the rotate-yz-range –90, 90 line to be enabled or not.

Now, to figure out how to batch this in Assetx !

Rico
 
I read on another thread here http://forums.auran.com/trainz/showthread.php?63264-Asset%B7X-FAQ/page61 that ianwoodmoore is using AssetX with TANE, so it must be working. The rotate 0 or 1 is the on/off toggle in order for the rotate-yz-range –90, 90 line to be enabled or not.

AssetX works just fine for T:ANE assets.

rotate 0 means that there will be no rotation possible, but it is not the default. Therefore there should not be a rotate-yz-range tag when the rotate tag has a zero value. Use:

rotate 1
rotate-yz-range –90, 90

or

rotate-yz-range –90, 90

or

rotate 0
 
You can also use a program such as Search and Replace Master.

You simply setup a specific line and space you want to add this too and then open up a bunch of assets for editing, run the program and they're all updated at once.
 
Back
Top