Page 1 of 1
Command Line SF_ARITHMETIC
Posted: Mon Apr 04, 2022 10:23 am
by PablerasBCN
Please add parameter for "Update SF1 directly" so that the operations that support it do not generate new scalar fields, this way we can avoid bloat and unnecesary file size increases. Cheers.
Re: Command Line SF_ARITHMETIC
Posted: Sun Oct 02, 2022 3:39 pm
by daniel
Not sure if it's still interesting to you, but this is now possible with the -IN_PLACE sub-option.
Re: Command Line SF_ARITHMETIC
Posted: Sat Oct 22, 2022 4:40 am
by DaveOZ
Will the command line eventually get the option to apply basic operations to two scalar fields like it's possible in the GUI?
Code: Select all
-SF_OP {SF_index1} {operation} {SF_index2}
Re: Command Line SF_ARITHMETIC
Posted: Wed Oct 26, 2022 9:22 pm
by daniel
Do you mean other operations than (+,-,*,/)?
Re: Command Line SF_ARITHMETIC
Posted: Sat Oct 29, 2022 8:11 pm
by DaveOZ
Hey Daniel,
no, I’d like to apply these basic operations to two scalar fields using both as operands. So far I only figured out how to use a constant value as the second operand (VALUE in the wiki). But can I use a scalar field index as the value that gets e.g. multiplied with another scalar field index?
I know it works in the GUI but I haven’t achieved that on the command line yet.
Cheers
Re: Command Line SF_ARITHMETIC
Posted: Tue Nov 01, 2022 2:53 pm
by daniel
Ah sorry, I realize the Wiki was not up to date!
There's the -SF_OP_SF command that works the same as the -SF_OP option (but with 2 scalar field indexes). I've updated the wiki, and also the code (so that it can work on meshes just as the -SF_OP option does now) but in the older versions it was already working on clouds at least.
Thanks for the feedback.
Re: Command Line SF_ARITHMETIC
Posted: Tue Nov 01, 2022 2:53 pm
by daniel
Ah sorry, I realize the Wiki was not up to date!
There's the -SF_OP_SF command that works the same as the -SF_OP option (but with 2 scalar field indexes). I've updated the wiki, and also the code (so that it can work on meshes just as the -SF_OP option does now) but in the older versions it was already working on clouds at least.
Thanks for the feedback.
Re: Command Line SF_ARITHMETIC
Posted: Wed Nov 02, 2022 2:39 am
by DaveOZ
Awesome! Thank you.