Kirey Posted December 1, 2017 Share Posted December 1, 2017 (edited) Hello! Help me please.. I have paced models whit primitiv attribute /shop/blablabla , but i working in mat context. how to change attribute path /shop/blablabla >/mat/blablabla ? thanks of lot Edited December 1, 2017 by Kirey Quote Link to comment Share on other sites More sharing options...
moneitor Posted December 1, 2017 Share Posted December 1, 2017 you could do this in a Python sop maybe, although I am not very good with python oldPath = /shop/blablabla lastPart = oldPath.split("/") newPath = "/mat/" + lastPart[-1] Quote Link to comment Share on other sites More sharing options...
cgcris Posted December 1, 2017 Share Posted December 1, 2017 In vex: s@path = "/shop/blablabla"; s@path = re_replace("blablabla", "mat", s@path); 1 Quote Link to comment Share on other sites More sharing options...
Kirey Posted December 1, 2017 Author Share Posted December 1, 2017 @cgcris yes this is what I needed! Thank You! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.