Maxscript Made Easy: The Power of the One-liners

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   #16
Originally Posted by lo:
select lights


Why make it easy?
__________________
3D Engineer at MHWirth
Aker Solutions
www.homme3d.com
 
Old 04 April 2013   #17
One of my favorites, seeing what is what or where is what:

for i in selection do format "%\n" i 


or

for i in objects do format "% - %\n" i.layer.name i


or

for i in lights do format "% - %\n" i.name i.enabled


I think you get the point
__________________
poof ~>Vimeo<~
 
Old 04 April 2013   #18
one of my favorites is

environmentmap = undefined


[off topic] how is it there is not a "remove map" option from the environment dialog [/off topic]
__________________
www.davetyner.com
 
Old 04 April 2013   #19
A small contribution:

$.baseObject = $[1].baseObject
$.baseObject = $[$.count].baseObject


Instantiate all selected base objects tor first or last selected one, respectively. If there is modifiers it creates a reference. I use a lot for point helpers though, especially with tracking data.
 
Old 04 April 2013   #20
Originally Posted by em3: one of my favorites is

environmentmap = undefined


[off topic] how is it there is not a "remove map" option from the environment dialog [/off topic]


Hah no kidding

and of course:
max hold
__________________
poof ~>Vimeo<~
 
Old 04 April 2013   #21
**** off topic:
@em3 - there is - right click any map slot and there you have "cut, copy, clear"
works everywhere - guess no one used it as there is the none slot in the browser (but i think only the legacy one..? - many years before i noticed this)

but to get on-topic again:

$.material = undefined

Last edited by damjan : 05 May 2013 at 12:34 AM.
 
Old 05 May 2013   #22
Originally Posted by damjan: **** off topic:
@em3 - there is - right click any map slot and there you have "cut, copy, clear"
works everywhere


Mmmn no it doesn't, unfortunately there are places where that is not implemented. You either have to open the Map browser and apply a "None" map, or clear it via MAXScript

Try it here:
Attached Images
File Type: png EvoDiag.png (4.7 KB, 58 views)
__________________
poof ~>Vimeo<~
 
Old 05 May 2013   #23
it works here

max 2013 x64 windows7
standard install - only have the map browser and select by name on legacy - maybe this does the tick?
 
Old 05 May 2013   #24
You can right-click on that highlighted button I posted and you get a right-click menu that says Cut/Copy/Clear?
__________________
poof ~>Vimeo<~
 
Old 05 May 2013   #25
yes - and as i see now, when it is a bitmap, there are even more options..
Attached Images
File Type: jpg Untitled-1.jpg (67.5 KB, 50 views)

Last edited by damjan : 05 May 2013 at 10:41 AM.
 
Old 05 May 2013   #26
LOL I can't even blame it on senility
__________________
poof ~>Vimeo<~
 
Old 05 May 2013   #27
Originally Posted by JohnnyRandom: LOL I can't even blame it on senility


I tried that 3 times last night and nothing happened. This morning it works after I read the post. WTF!?

Thanks damjan!
__________________
www.davetyner.com
 
Old 05 May 2013   #28
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 07:24 PM.


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