How to deal with spaces in class name (lua newb)?

smelly
Posts: 1
Joined: Wed Aug 14, 2019 10:20 pm

How to deal with spaces in class name (lua newb)?

#1

Post by smelly » Thu Aug 15, 2019 4:29 pm

Hi Lua Newb here.
I want to read and set the "clip attributes" for a clip in the media pool (change frame rate, Super scale, etc). I found a class called "Media pool item" through the FusionScript Help Browser which looks like it will do the trick. However, I'm stumped on how to deal with a class with spaces in the name in Lua. I tried various things (quotes, brackets, etc) in the console, but I can't figure this out. Any hints? :)

User avatar
SirEdric
Fusionator
Posts: 1820
Joined: Tue Aug 05, 2014 10:04 am
Answers: 2
Real name: Eric Westphal
Been thanked: 97 times
Contact:

Re: How to deal with spaces in class name (lua newb)?

#2

Post by SirEdric » Thu Aug 15, 2019 9:32 pm

Norrmally one would just discard the spaces.
If you e.g. hover your Mouse over a BG's 'Pixel Aspect' control,
the bottom left of the GUI will show Background1.PixelAspect (without a space).