Thanks a lot. I was so sure I had tried just that and I got an error there was no such attribute in a StartValue instance.
Well now it works. Thanks again. Maybe thera going to be some more questions soon.
Plugin documentation?
Re: Plugin documentation?
It's when I ask for the value before I set it I got the error
"Unable to call an unknown method 'leadin' on a 'StartValue' type."
Code: Select all
leadin = operation.defaultStart.leadin
Re: Plugin documentation?
I just checked the code and I made a mistake in the .i file, which is why that doesn't work. This will be fixed in the next dev release.
Re: Plugin documentation?
Code: Select all
operation.defaultStart.leadin = 10
- Les Newell
- Site Admin
- Posts: 3685
- Joined: Thu May 11, 2006 8:12 pm
Re: Plugin documentation?
Yeah. Lua doesn't know a StartValue is a descendant of StartPoint. However this may work:
Although Lua doesn't know about the relationship, C++ does. DynamicCast is implemented in C++ so this may well work.
Code: Select all
local st = operation.defaultStart:DynamicCast("StartPoint")
local leadin = st.leadin
Re: Plugin documentation?
Nop
"DynamicCast() Cannot cast a wxLua type 'StartValue' to a 'StartPoint'."
I have to wait for the update
"DynamicCast() Cannot cast a wxLua type 'StartValue' to a 'StartPoint'."
I have to wait for the update