Allowing simple math operations on parameters #49
gordfarrell
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Yes, I suspect there will be many applications of this. In designing a feature like this, I think we'll want to make it as general as possible while still keeping it simple to understand and analyze. What do you think of putting the simple math inside the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was reading through the "Introduction to Creating a Job" documentation last week (which is really useful) and after doing some tests relating to the section on multiple frames per task with a combination expression I has some thoughts about how it works and how it could be improved.
Currently, to have each task render a set of frames (aka a "chunk"), you need to define the usual set of parameters:
but you also need to define an additional parameter so the
range
expressions work properly:and one more to support a
FrameStart
other than1
(not mentioned in the docs, but necessary):These are then used to define the frame ranges for each task:
The downside of this is that we're now exposing two additional parameters that need to be passed in to the job,
FrameEndMinusOne
andFrameStartPlusStepMinusOne
, that are implementation details and should really be internal to the job template. But there's no way to set these parameter values on the fly, so they need to be exposed.If we could do simple math on these parameters (+-*/), then we could hide them. How such expressions could be defined is up for discussion, but one option would be something like this:
What do people think? Could this be a useful addition?
Cheers,
Gordon
Beta Was this translation helpful? Give feedback.
All reactions