What do the methods “loadmultiVFX” and “cleanallvfx” return? You’re adding those return-values into the Sequence named “track”, and I’m wondering whether said return-values are valid Intervals (or Sequences or Parallels).
If they’re not such valid things, then it may be that they’re resulting in an invalid Sequence, which the parallel is thus rejecting.
Ah. In which case you’re then passing “None” (the return-value of a function that returns nothing) into your Sequence, which presumably isn’t a valid thing to have, and is thus I imagine resulting in the sequence being found invalid by the Parallel.
Are you perhaps trying to have those methods themselves (as opposed to their return-values) be added to the Sequence?
If so, then my answer has two parts:
First, one passes in a method or function (again, as opposed to its return-value) as a parameter by passing in the function with no brackets or parameters. For example:
def meow():
print ("Meow!")
# A slightly-pointless method that should nevertheless
# hopefully demonstrate the passing-in of functions/methods
def callAMethod(someMethod):
# Call the method! :D
someFunction()
# Now, we want to have "callAMethod" call the "meow" method...
# The following >doesn't< work:
# It passes in the return-value of "meow", which
# is "None" (as "meow" doesn't return anything):
callAMethod(meow())
# Note that the above >calls "meow"< when
# specifying a parameter to "callAMethod"
# The following >does< (or should) work:
# It passes in >meow itself<, not its return-value
callAMethod(meow) # <-- Note the lack of brackets after "meow"
# Note that the above >doesn't< call "meow" when
# specifying a parameter to "callAMethod".
Now, that’s the first issue. The second is that you’re just passing the method directly into the Sequence–and I daresay that Sequence doesn’t know what to do with such a thing.
In order to have a Sequence (or Parallel) run an arbitrary method, we use a special Interval called a “Func”. This simply takes a function/method and then, as instructed by a Sequence or Parallel, calls that function/method.
(This is what is happening in the post to which you linked, I believe: the code posted there passes the method itself into a Func-object, which is added to a Sequence.)