Difference between Ctrl+E & DragDrop Button

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  04 April 2013
Maxscript : Difference between Ctrl+E & DragDrop Button

Hi everybody !

Sorry for this basic question, but I have difference between the 3dsmax reaction between Ctrl+E/Shift-Enter and DragDrop Button.

Simple Sample here :
Works well with the Ctrl+E (LOD1 = 50% poly count of the source), and with a dragDrop button, LOD1 = 100% poly count of the source.

-- Clone
		obj = $selection[1]
		maxOps.cloneNodes obj cloneType:#copy newNodes:&result	
		objLod1 = result[1]	
		objLod1.name = obj.name + "_LOD1"
		deleteModifier objLod1 1

	 	-- Optimize 50
		addModifier objLod1 (ProOptimizer ())
		objLod1.modifiers[#ProOptimizer].KeepUV = on
		objLod1.modifiers[#ProOptimizer].VertexPercent = 50
		select objLod1
		$.modifiers[#ProOptimizer].Calculate = on
		-- Skin Wrapp
		addModifier objLod1 (Skin_Wrap());
		addMesh = #();
		addMesh[1] = obj
		objLod1.modifiers[#Skin_Wrap].meshList = addMesh
		select objLod1
		$.modifiers[#Skin_Wrap].meshDeformOps.convertToSkin off
		--maxOps.CollapseNodeTo $ 2 off

Maybe need a local/global variable, or something like that ?
my gallery : www.skyrick.fr

Last edited by skyrick : 04 April 2013 at 06:34 PM.
  04 April 2013
Little up
If you have ideas, you're welcome
my gallery : www.skyrick.fr
  04 April 2013
The problem is,propably, because when you use drag-n-drop you are not in modify pannel. Put this on top of the code above and the script will work:

max modify mode

Why you use this?
obj = $selection[1]

instead of this
obj = selection[1]
  04 April 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:16 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.