vm_surface string edit

   3644   3   0
User Avatar
Member
75 posts
Joined: July 2006
Offline
Hi,

I'm trying to edit the string below:

opobj/defaultShaders/wireOccMaterial/occWireframe input2 1 angle 0 samples 4 parm 0 scope “*”

to

opobj/defaultShaders/wireOccMaterial/occWireframe

ie. deleting everything after the first space. I need to do this on all surfaces assigned to a model and not just this one so a simple replace isn't what I'm looking for. Basicaly I need some way of deleting everything after the first space.

any ideas?

John
john @ goodbyekansas
User Avatar
Staff
3465 posts
Joined: July 2005
Online
attribute string edit
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
75 posts
Joined: July 2006
Offline
Thanks

I used

from: *input*
to: *

not sure if that's ok but it seems to be working for now

Cheers

John
john @ goodbyekansas
User Avatar
Staff
3465 posts
Joined: July 2005
Online
yeah…
it's quite powerful
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
  • Quick Links