@dusx said:
With that said, you use the standard method of mutating your inputs/outputs to the expected types.
These User Actors of mine can be quite useful for that: https://troikatronix.com/add-ons/mutator-user-actors/
Pythoner basically passes values from Isadora into your Python script as raw Python objects. There is:
❌ No built-in type system for inputs/outputs
❌ No way to declare types like “this input is always an int” at the actor level
✅ Only positional passing of values
With that said, you use the standard method of mutating your inputs/outputs to the expected types.
Additionally in your python code it is useful to test the type of inputs to ensure proper function. (I honestly don't do this often because I'm quite careful with my input connections. Using user actors to contain my pythoner scripts makes this even easier because you can set the type of the user inputs before attaching them).
You might look into using:
# Validate types
if not isinstance(my_input, expected_type):
# convert or handle error
# Convert if needed
my_input = int(my_input) # or float, list, etc.
This allows you to test incoming values in your python_init() function
Hi there,
I'm working with the Pythoner actor and I'm trying to figure out if there is a way of indicating that an input should have a particular range to start with inside the python code?
I'm able to get it to make different kinds of inputs but they always populate as "0". . . .
Any guidance would be great.
Thank you!
-=Alex=-
(edit: added extra words for more clarity)
Thanks, Ryan.
It'd just be a stream from an IP Camera on the local network, so I think the OBS / NDI solution will work fine for my needs.
I'm sure you have better things to do with your time :-)
Cheers
Mark
@mark_m said:
best of all possible ways
I guess that would depend on what you are expecting?
I have an example file (I need to test it again to determine how complete it is) that uses Pythoner to connect and stream a RTSP stream.
This doesn't provide sound, and can run OpenCV or FFmpeg as backends.
If you have a test URL, I could test this and send you a working file if it will suite your needs?
Hello world,
I've seen some past discussions about getting RTSP feeds into Isadora, with feature requests (made during Covid, when teleperformance was the only performance!) for an RTSP input actor, which I don't think ever happened.
Is our current best solution still to capture the RTSP stream in OBS and send to Isadora via NDI?
That works fine, but just checking this is the best of all possible ways.
Thanks a lot!
Mark (not that Mark)