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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2013   #1
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.
 
Old 04 April 2013   #2
Little up
If you have ideas, you're welcome
__________________
my gallery : www.skyrick.fr
 
Old 04 April 2013   #3
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]
 
Old 04 April 2013   #4
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.
 
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 09:14 AM.


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