ScriptSpot

Forum topic · Scripts Wanted

Select / Set ID floating panel

By harumscarum · 2011-10-02

Downloads
Description

hello
here I modified RealSize script so it is possible to put it down to status panel nicely.

but I have another dream - put down Select/Set ID actions same as RealSize floating panel

Comments (2)

tassel · 2012-04-15

You need help to assign and select ID's ?

You can check out this post:
http://www.scriptspot.com/forums/3ds-max/general-scripting/select-object…

This little snippet Assign ID's:
( There is prob. much nicer way of doing this, but i'm not a scripter ;o) )


try(destroyDialog rol_AssignIDs)catch()

rollout rol_AssignIDs "Material ID Assigner"
(
	spinner spn_IDVal "Assign Material ID:" width:120 height:22 align:#left type:#integer range:[1,1000,1]
	
	on spn_IDVal changed val do
	(
		for i in selection do
		(
			if classOf i.baseObject == Editable_Poly then
			(
				subobjectLevel = 4
				max select all
				af = polyop.getFaceSelection i as array
				for f in af do polyop.setFaceMatID i f spn_IDVal.value
				subobjectLevel = 0
				redrawviews()
			)
			else if classOf i.baseObject == Editable_Mesh do
			(
				subobjectLevel = 4
				max select all
				af = getFaceSelection i as array
				for f in af do setFaceMatID i f spn_IDVal.value
				subobjectLevel = 0
				redrawviews()
			)
		)
	)
)
CreateDialog rol_AssignIDs 165 30 240 150

let me up this topic

harumscarum · 2012-04-15

if anyone could help