Urban Terror Forums: Radiant: Apply default texture orientation to all brushes - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Radiant: Apply default texture orientation to all brushes Rate Topic: -----

#1 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 16 June 2009 - 02:50 AM

Sometimes your brushes have textures rotated or translated from their defaults, for various reasons, accidental or intentional.  So my current goal is to select EVERY SINGLE SURFACE on a brush and basically click the texture that it already has to apply it again so that it would be in the default position (I'm sure there's a technical term for this).  I cannot find a Radiant button to "apply default texture position to all selected brushes".  So I came up with script in UNIX to do this, it may be dangerous but hell it worked for me:


#!/bin/sh

sed -r 's/ -?[0-9]+ -?[0-9]+ -?[0-9]+ -?[0-9]+.[0-9]+ -?[0-9]+.[0-9]+ 134217728 -?[0-9]+ -?[0-9]+/ 0 0 0 0.500000 0.500000 134217728 0 0/g' | 
sed -r 's/ -?[0-9]+ -?[0-9]+ -?[0-9]+ -?[0-9]+.[0-9]+ -?[0-9]+.[0-9]+ 0 -?[0-9]+ -?[0-9]+/ 0 0 0 0.500000 0.500000 0 0 0/g'



It seems to only affect brushes (not patch mesh), which is what I wanted.  I think this may actually do some bad stuff but I don't  know what yet.

#2 User is offline   Yas Icon

  • Account: yas
  • Country:
  • Joined: 28-February 10
  • Posts: 1,313

Posted 16 June 2009 - 03:12 PM

couldnt you just press 'l' then select worldspawn, deselect the patches, press 's' then type 0 0 0 .5 .5 0 etc... in the relevant boxes?

#3 User is offline   Stv Icon

  • Account: stv
  • Joined: 01-March 10
  • Posts: 183

Posted 24 June 2009 - 05:53 AM

ESC (deselect)
I (invert select)
S (surface inspector)
'axial' + 'natural' *click**click*

but why would you want to do this? all texture scaling and alignment will be lost.
better SHIFT+T next time and lock the textures before moving.
and locking when rotating the brush only works as long as you do not rotate it around more than one axis...

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.frozensand.com/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942