Select / Set ID floating panel

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

AttachmentSize
realsize.zip6.63 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tassel's picture

You need help to assign and

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

Raymond H.Ingebretsen - http://www.homme3d.com

harumscarum's picture

let me up this topic

if anyone could help

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.