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

How can I trust people who write this code:
http://www.autodesk.com/content/dam...ge-1152x696.jpg
 
  03 March 2013
Quote:
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
 
  03 March 2013
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:

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
 
  03 March 2013
here is a better (more expensive) version:

 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
 
 
  03 March 2013

 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
 
 
  03 March 2013
Well, at least the .res files make it a bit harder to translate property names to Japanese, for example.
__________________
Scripts :: linkedin
 
  03 March 2013
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
 
  03 March 2013
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.
 
  03 March 2013
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
 
  03 March 2013
Originally Posted by denisT: here is a better (more expensive) version:

 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
 
  04 April 2013
That maybe explain some of the strange stuff in max...
I'm sure there's plenty other example in the core code.
 
  04 April 2013
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
 
  04 April 2013
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.
 
  04 April 2013
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.
__________________

 
  04 April 2013
if we are talking about 'safe coding' try to guess where these two global functions i got...
GetSelectedSubAnim(), IsFloatController()
or try:

 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 01:24 PM.


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