Workaround for setProgressiveSourceLoading not working

For anyone working with progressiveSourceLoading here a note of a workaround until its fixed officially.

The manual says to enable async loading like this
setProgressiveSourceLoading = true

But this doesn’t work in RV 2024.1.0

from rv import commands as rvc
print(rvc.progressiveSourceLoading() )
rvc.setProgressiveSourceLoading = True
print(rvc.progressiveSourceLoading() )

Result:
> False
> False

Trying to use it like a function call doesn’t work either

from rv import commands as rvc
rvc.setProgressiveSourceLoading(True)

Result:
Traceback (most recent call last):
  File "C:\Program Files\Autodesk\RV-2024.1.0\src\sgtk\baked\plugin\bundle_cache\app_store\tk-multi-pythonconsole\v1.4.0\python\app\input_widget.py", line 246, in execute
    exec(python_code, self._locals, self._locals)
  File "python input", line 2, in <module>
TypeError: 'bool' object is not callable

But importing it again works

from pymu import MuSymbol
s = MuSymbol("commands.setProgressiveSourceLoading")
print (rvc.progressiveSourceLoading())
s(True)
print (rvc.progressiveSourceLoading())
s(False)
print (rvc.progressiveSourceLoading())

Result:
> False
> True
> False
1 Like

Hi, for me it is working in RV2024.1.0

I think I might know what’s happening on your end.

It is working like that:

from rv import commands as rvc
print(rvc.progressiveSourceLoading())  # False
rvc.setProgressiveSourceLoading(True)
print(rvc.progressiveSourceLoading())  # True

But when you put the code, with setting it to True and then execute the other code (calling it like a function) after, you get the Error you described, because you are Trying to execute the “True”

rvc.setProgressiveSourceLoading = True
rvc.setProgressiveSourceLoading(True)  # TypeError: 'bool' object is not callable

So starting fresh and just calling
rvc.setProgressiveSourceLoading(True)
should work :slight_smile:

The “setProgressiveSourceLoading = true” was most likely referring to mu.

Cheers, Mirco

2 Likes