Programming from scratch
The article is primarily intended for the "humanities".
Runtime environment and
Why 3DS Max?
I propose a slightly unusual, but effective, in my opinion, a way to get acquainted with practical programming for the βhumanitiesβ.
The article will be very simple and accessible, but for the sake of thoroughness, let's try to start with the βhistory of anatomy":
What is programming?
Programs of what?
- A program is a sequence of instructions!
Instructions to whom?
- Ultimately, the processor of a computer or smartphone, i.e. physical, real device.
Theoretically, everything is true, but the processor understands only the machine code, in fact, the stream of numbers or, if absolutely anatomical, the electrical signals of βhighβ (for example 3 volts) and βlowβ (1 volts) voltage, which are βunderstoodβ by the processor circuitry as zeros and units, binary signals.
We wonβt go into the physics of semiconductors, but who cares - google βsemiconductors and logic elements")
Nothing prevents the implementation of both βdecimalβ signals and decimal mathematics, but it is cumbersome and not economical. Although in telecommunications there are a lot of precisely βternary" elements and mathematics.
, β" β", β".
β" , , , β β .
- βkeyboardβ .
β !
add, mov .. β . " " , β β.
β" β - , β". , ββ. β .
β" , β , ?β
, - β ", , , () β , , β β.
β : .
.
β " - , --.
, . ββ, , β".
β" .
, β β , .
- , β , β .
, , " ", ?
β β, β β.
β" , , .
β " .NET v8, NodeJS WEB .
, β β .
C++ Unity , β !
- " " .NET Unity, .
, , WEB. WEB , , .
WEB .
, ( , ).
3DS Max
, , , , β , β β .
3DS Max , β ".
β β? β , .
β " . - !
3DS Max , , . ?
: MaxScript Python.
Python 3DS Max , MaxScript.
WEB β Javascript!
, , )
MaxScript . β β ", - (, , ..)
, β ", ββ, β", β" .. β β " β β , β )
, !
:
MaxScript
β !
3DS Max β , . , 3DS Max ( )
.
, 3DS Max.
Scripting Script Editor
Script Editor MaxScript 3DS Max.
, 3DS Max ββ 3DS Max " " .
! β " " " .
3DS Max F11
β β , .
β¦ !?
, () . - β ". 3DS Max , , , , , , .
, )
: , , ..
" "
β !β
β " , :
Print β !β βenterβ

: β " β ". , !
Print , β". .
β" (3DS Max ). , β ", β β " β - β
, . .
:
Print -, !
βenterβ.
-- :

?
!
β β .
, .
β ". , : β ", β β, β β.
, , ..
β/ ", β " .. .
- , β !β β , :
Box()
.

MAXScript Listener ( F11) :

MAXScript Listener (F11) :
Teapot()

!
β" .
- ( Z) .
( ): !
β β , β" , ?
ββ, β", β" ..
β" . , .
β", ββ , ββ (Teapot) , . , :

: βBoxβ, βTeapotβ ..
β : Box001, Teapot001
β β :
$Box001

.
- ? β β" !
. , .
!
show
80% . . .
!
JavaScript jQuery React -, " " .
show $Box001

Box001 β .
β β .
.height , , β"
height Box001:
$Box001.height

25
Z - βZ" βpositionβ ( βposβ) , β" - :
$Teapot001.pos.z = 25
βenterβ !

, β" )
.
.
, β" !
, max script listener :

\$ .
max script listener ( ) .
β , .
, "" .
() .
, , , , .. " " .
, )
:
- ! WEB javascript, β .NET C# Unity 3D # 3DS Max β MaxScript Maya β Python(). .
- β " , β " . .
- (, , ..) . , , .., β , .
- Do not get carried away excessively by the programming itself, keep in focus what you need it for and do not be afraid to part with what has stopped or failed to solve your problems, do not blame yourself and do not listen to the arguments of critics: βOh, you didnβt drag Java and rolled to html! β Remember, itβs important that you create and not what you do)
So we got acquainted with practical programming in a real executable environment and almost did not even mention variables.
For the real benefit of such programming, you must be familiar with variables and loops, as well as arrays. What we will do in the next part of the article.