Notifications
Clear all

[Closed] use maxscript import/merged a .max file

hi,

I have a very repetitive task in my job. I want to make script for this task
I need :

  1. import/merge first .max scenes. 4 polygon object merged in scenes from the specific folder
    2- I want to these merged meshes object connect to with any object use skin wrap modifier
    example:
    xx object connect to yy object with skinWrap modifier

how do I make it

6 Replies

merging max files:

mergeMAXFile <filename>

http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help//index.html?query=

testing of an object has skin:

http://forums.cgsociety.org/showthread.php?t=746434

I want to these merged meshes object connect to with any object use skin wrap modifier

there are many ways to “connect” things in Max.
how are you “connecting” these objects manually?

I use skin wrap modifer but Is there a way to make it faster by using maxscript?

so to clarify:

you have a scene open which contains an object “obj_A”
Obj_A is skinned to some bones

you have other scene files with additional objects ( “obj_B” ,“obj_C”…etc)

you want to Merge all of these ( “obj_B” ,“obj_C”…) into the same scene as “obj_A”
and then skin wrap (“obj_B” ,“obj_C”…) to the same bones as “obj_A”

Thus you have one scene , with all objects skin wrapped to the same skeleton as “obj_A”
does that sound right?

1 Reply
(@frkn)
Joined: 10 months ago

Posts: 0

//youtu.be/vQB08PukGaY

I want to do that like this video with using maxscript

thank for interest

note : I did that video lol

This may give you a start…

Merge in objects by name


	mergeObj = #("A_object","b_object","c_object")
	mergemaxfile "test_A.max" mergeObj

Skinwrap object_A to Object_B
(and Increase falloff and Influence distance)


	fn skinwrap obj source =(
		if obj!=undefined and source!=undefined then(
			format"
	(skinwrap (% to %) )
" obj.name source.name
			setcommandpaneltaskmode #modify
			sw=Skin_Wrap()
			addmodifier obj sw
			sw.meshList=#(source)
			--Increase falloff and Influence distance
			sw.falloff=3.0
			sw.Disntance=3.6
		)
	)

1 Reply
(@frkn)
Joined: 10 months ago

Posts: 0

Thank you very much, this is very helpfull and clear thanks