changing of models
changing of models
Hey, guys! Are we still alive here?) If so, pleease, help me - how to change parts of model with another one?
For example, I have many nuts or bolts on my model and wanna change them with another version of them (and redistribute them in the same place, of course).
What I can do now is only copy one new nut - match it with old - delete old one...quite slow pipilene, uh?
Is it possible to automatize it somehow? Thanks.
For example, I have many nuts or bolts on my model and wanna change them with another version of them (and redistribute them in the same place, of course).
What I can do now is only copy one new nut - match it with old - delete old one...quite slow pipilene, uh?
Is it possible to automatize it somehow? Thanks.
-
- Posts: 169
- Joined: 16 Jun 2009, 06:23
Re: changing of models
Simple batch Scripting will give you some automation, but other than substituted new object, like you described.
You also can modify the PolyMesh, through scripting, so that you keep all your keyframe, constraints, operators etc. if any.
because you modify a object, not replace it.
Re: changing of models
I'd like to replace them, not modified...and coordinates and objects are different, so as I can see,
it is impossible just to write in script smth like "match" -
it will be other pair of matches every time, no? But I'm not so strong in scripting anyway)
it is impossible just to write in script smth like "match" -
it will be other pair of matches every time, no? But I'm not so strong in scripting anyway)
-
- Posts: 169
- Joined: 16 Jun 2009, 06:23
Re: changing of models
Is this what you want?
"match" the new object to old one, then delete the old one, but again, you will lose all you constraints etc.
-
- Posts: 39
- Joined: 11 May 2020, 14:22
Re: changing of models
I know it's a little late for that.
If it's just for looks, I could convert it to particles once and then convert it...
it's quite difficult...
If it's just for looks, I could convert it to particles once and then convert it...
it's quite difficult...
Re: changing of models
Hello, I made a script.
Select objects to replace, run the script and pick object to replace with.
Select objects to replace, run the script and pick object to replace with.
Code: Select all
//JScript
OpenUndo("");
var sel = Selection;
var sel_count = sel.Count;
if(sel_count > 0){
var pick = PickObject("Duplicate", "Clone");
var button_pressed = pick(0);
if(button_pressed !== 0){
var ch = 2;
if(button_pressed == 2)ch = 3;
var picked_obj = pick(2);
var dup = SIDuplicate(picked_obj, sel_count, null, ch);
for(var i=0; i<sel_count; i++){
var sel_obj = sel(i);
var dup_obj = dup(i);
var sel_obj_par = sel_obj.Parent3DObject;
var dup_obj_par = dup_obj.Parent3Dobject;
if(sel_obj_par.FullName !== dup_obj_par.FullName)
ParentObj(sel_obj_par, dup_obj);
dup_obj.Kinematics.Global.Transform = sel_obj.Kinematics.Global.Transform;
}
DeleteObj(sel);
SelectObj(dup);
}
}
CloseUndo();
Re: changing of models
Thanks for the script
Re: changing of models
Kolya, you are man! I should try it!
Re: changing of models
Kolya X-said Did you come here from Softimage.ru ? I saw you there
Kolya nice to see you here. Did you make any new scripts?
Kolya nice to see you here. Did you make any new scripts?
Re: changing of models
Since Kolya is from Ukraine and with the beginning of this fucking SVO, he disappeared from the radar and now he has no time for scripts. I hope to see him safe and sound in the vastness of this forum.
Так как Коля с Украины и с началом этого долбаного СВО он пропал с радаров и ему сейчас не до скриптов. Надеюсь увидеть его в целости и сохранности на просторах данного форума.
Так как Коля с Украины и с началом этого долбаного СВО он пропал с радаров и ему сейчас не до скриптов. Надеюсь увидеть его в целости и сохранности на просторах данного форума.
Who is online
Users browsing this forum: No registered users and 37 guests