Notifications
Clear all

[Closed] 3dsmax changes casing of struct property names

Anyone seen this before, where variables inside a struct are changed to pascal or camel case (3dsmax 2017)?

(
    struct CatalogueHeader (id, headername, headername1, displayname, displayname1, visible)
    print CatalogueHeader
    ok
)

#Struct:CatalogueHeader(
  headerName:<data>; Public,
  displayname1:<data>; Public,
  visible:<data>; Public,
  headername1:<data>; Public,
  id:<data>; Public,
  DisplayName:<data>; Public)
OK

headername becomes headerName
displayname becomes DisplayName

Yet another maxscript quirk? I’m pretty sure they aren’t special keywords…

2 Replies

Yes, pretty common, not only in structures.

(
	
	fn myfunction_1 MY_VARIABLE_1: mY_vAriAbLE_2: =
	(
	)
	
	print #my_variable_1
	print #my_variable_2
	
	fn myfunction_2 my_variable_3: my_variable_4: =
	(
	)
	
	print #MY_VARIABLE_3
	print #MY_VARIABLE_4
	
	print #MY_VARIABLE_5
	
	struct mystruct (my_variable_1, my_variable_2, my_variable_3, my_variable_4, my_variable_5)
	
	print mystruct
	ok
	
)

#MY_VARIABLE_1
#mY_vAriAbLE_2
#my_variable_3
#my_variable_4
#MY_VARIABLE_5

#Struct:mystruct(
my_variable_4:; Public,
my_variable_3:; Public,
MY_VARIABLE_5:; Public,
mY_vAriAbLE_2:; Public,
MY_VARIABLE_1:; Public)

lol, what a mess probably best to try and not care too much… wince