Vertion RealFlow10 If you can do the basics of Python, RF_Python will also be crisp.
This time we will use Batch Script. It can be displayed with `: F10key. ``
: I have a layout like this.
Script view
Introduction
#Create Helloworld
word = "HelloWorld";
scene.message(word);
Script is executed by pressing Ctrl + Enter.
Japanese input is Error
If Hello World appears in Messages ... Congratulations! Execution is successful.
Now....
If you want to output the value or some operation result to message
.message
scene
Is a module.
scene
can be mapped to a variable.
#into variable
moj = scene;
moj.message("helloWorld");
The string concatenation is ...
scene.message("hello"+"World");
word = "hello";
scene.message(word+"World");
It has been confirmed.
vector module
# Create a new vector a compute its module.
vector = Vector.new( 1.0, 2.0, 3.0 );
scene.message( str( vector ) );
Three-dimensional components familiar with CG : Arg (argument) When outputting with: message, it is necessary to enclose it with str (). To get the value of: float ...
#get float component
vector = Vector.new( 1.0, 2.0, 3.0 );
vecX = vector.getX();
scene.message( str( vecX) );
Edit_vectorfunction
The above two parts were difficult for me to learn. If you keep these two in check, you can write a script in a crisp manner.
Recommended Posts