materialbutton doesn't support drag/drop

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
  07 July 2007
materialbutton doesn't support drag/drop

Hi,

I have a "materialbutton" button in my roll up interface for MaxScript, but it will not accept materials dragged and dropped from the material editor. I can also not drag the material from the roll up to the material editor.

I'm not using a parameter block.

Is there a way to get this working?
__________________
ThinkingMedia is a Visual Effects Studio in Toronto.
Be sure to follow me on Twitter
Watch our Tutorials on Sidefx Houdini


 
  07 July 2007
As far as I can tell it's impossible. I've tried many times before with no success.
__________________
||||| www.wahooney.net |||||
Head Towards the Light

Learning to use Blender3d
 
  07 July 2007
Yeah, sadly I ran into the wall too with this when writing SME. Unfortunately maxscript doesn't offer any kind of mat/map drag'n'drop support with buttons or otherwise.
 
  07 July 2007
That sucks.

I added a little button to the side of the materialbutton, which will open the material editor and place the material in slot #1. Does anyone know how to make slot #1 the active material in the editor.
__________________
ThinkingMedia is a Visual Effects Studio in Toronto.
Be sure to follow me on Twitter
Watch our Tutorials on Sidefx Houdini


 
  07 July 2007
Quote: Interface: medit
<void>SetActiveMtlSlot <index>slot <boolean>forceUpdate
This method allows you to set the active material slot.
<index>slot : The material slot index.
<boolean>forceUpdate: Set this to true to update the slot contents.
<index>GetActiveMtlSlot()
This method returns the index of the active material slot.

So it should simply be:
if medit.getactivemtlslot() != 1 then (
	medit.setactivemtlslot 1 true
) else (
	ok
)
-Eric
__________________
"The Evil Monkey hiding in your closet."

Last edited by PiXeL_MoNKeY : 07 July 2007 at 03:12 PM.
 
  07 July 2007
Thanks! I read that in the manual, but forgot that use to "medit" interface. Arg..
__________________
ThinkingMedia is a Visual Effects Studio in Toronto.
Be sure to follow me on Twitter
Watch our Tutorials on Sidefx Houdini


 
  07 July 2007
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
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 10:19 AM.


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