Just have looked at new features...

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 03 March 2013   #1
Just have looked at new features...

How can I trust people who write this code:
http://www.autodesk.com/content/dam...ge-1152x696.jpg
 
Old 03 March 2013   #2
Quote:
Code:
if unwrapMod.getEnableSoftSelection() == true do dash_SoftFalloff.enabled = true if unwrapMod.getEnableSoftSelection() == false do dash_SoftFalloff.enabled = false


I can imagine this would happen only if they were paid by lines of code or number of characters written
__________________
Scripts :: linkedin
 
Old 03 March 2013   #3
Quote:
Originally Posted by Swordslayer
I can imagine this would happen only if they were paid by lines of code or number of characters written

it's worse:
Code:
dash_SoftFalloff.enabled = false dash_SoftFalloff.enabled = true if unwrapMod.getEnableSoftSelection() == true do dash_SoftFalloff.enabled = true if unwrapMod.getEnableSoftSelection() == false do dash_SoftFalloff.enabled = false
 
Old 03 March 2013   #4
here is a better (more expensive) version:
Code:
if unwrapMod.getEnableSoftSelection() == true and unwrapMod.getEnableSoftSelection() != false do dash_SoftFalloff.enabled = true if unwrapMod.getEnableSoftSelection() == false and unwrapMod.getEnableSoftSelection() != true do dash_SoftFalloff.enabled = false
 
Old 03 March 2013   #5
Code:
global UNWRAP_ROLLOUT_TITLE = "Unwrap Rollout" rollout UNWRAP_ROLLOUT_DEFINITION UNWRAP_ROLLOUT_TITLE ( local UNWRAP_ROLLOUT_CREATE_BUTTON_TITLE = "Create" local UNWRAP_ROLLOUT_CREATE_BUTTON_WIDTH = 100 button UNWRAP_ROLLOUT_CREATE_BUTTON_DEFINITION UNWRAP_ROLLOUT_CREATE_BUTTON_TITLE width:UNWRAP_ROLLOUT_CREATE_BUTTON_WIDTH ) createdialog UNWRAP_ROLLOUT_DEFINITION
 
Old 03 March 2013   #6
Well, at least the .res files make it a bit harder to translate property names to Japanese, for example.
__________________
Scripts :: linkedin
 
Old 03 March 2013   #7
Is the code from the screenshot really in there ?!?!?!?

I would hope this is just a fake code screenshot ....
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio
 
Old 03 March 2013   #8
Quote:
Originally Posted by spacefrog
Is the code from the screenshot really in there ?!?!?!?

I would hope this is just a fake code screenshot ....

it's the real code!
\stdplugs\stdscripts\modifier_uvwunwrap_dialog.ms
Enjoy!

Last edited by denisT : 03 March 2013 at 05:27 PM.
 
Old 03 March 2013   #9
I just had a look in 3ds Max 8:
those awefull code parts are there already and the header itself says they were added for Max 6. Let's hope the days of such code quality are really gone ....
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio
 
Old 03 March 2013   #10
Quote:
Originally Posted by denisT
here is a better (more expensive) version:
Code:
if unwrapMod.getEnableSoftSelection() == true and unwrapMod.getEnableSoftSelection() != false do dash_SoftFalloff.enabled = true if unwrapMod.getEnableSoftSelection() == false and unwrapMod.getEnableSoftSelection() != true do dash_SoftFalloff.enabled = false



ha ha ha ha ha
__________________
http://matthewlichy.com

 
Old 04 April 2013   #11
That maybe explain some of the strange stuff in max...
I'm sure there's plenty other example in the core code.
 
Old 04 April 2013   #12
I love the caps lock and the first two UI items that have position expression calculations haha. It's called a calculator!
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 04 April 2013   #13
Ugh.... I have never ran across that specific .ms file, but I have gone through some other AMAZING scripts from autodesk that made me laugh and cry at the same time.

also John don't you know? Caps everything makes code better... If this is not a fact then it should be.
__________________
Felipe Nogueira aka: PePeTD
Technical Artist/Character TD
http://felipenogueira3d.com

Last edited by PePeTD : 04 April 2013 at 01:44 PM.
 
Old 04 April 2013   #14
Quote:
Originally Posted by JokerMartini
I love the caps lock and the first two UI items that have position expression calculations haha. It's called a calculator!


The calculations are what got me.
__________________

 
Old 04 April 2013   #15
if we are talking about 'safe coding' try to guess where these two global functions i got...
GetSelectedSubAnim(), IsFloatController()
or try:
Code:
isFloatController (bezier_float())
 
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:41 PM.


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