On 18/07/2017 at 06:20, xxxxxxxx wrote:
Cinema 4D Version: 18
Platform: PC ;
Language(s) : Phyton ;
Hi Guys,
Its been a while I have post anything.
Okay I made a example plugin that save and load UI data with .xml file that you can download.
but UI element which is AddEditNumberArrows. I can get the data from it.
And load it back by using a SetSting() that is show below and it works.
# Load Start and End of the AddEditNumberArrows
LoadStartData = data.get('Start')
self.SetString(GetStart_ID, LoadStartData)
LoadEndData = data.get('End')
self.SetString(GetEnd_ID, LoadEndData)
Now you will see number you save to the xml in the UI element when you load it. But it don't really set to the UI its False. Cause when I move the Arrows set to 1 or 0. Look at this example gif below.
Now I understand that I use SetString() but basically it not a string UI element.
Then I use a SetLong() and SetReal() and I get this error.
I'm still lost so I y'all you can help me.
Plus even tho I been doing plugins for 2 years I am still a noob to plugin dev in C4D, I am still learning.
To download the free example plugin .pyp I made, so you can look at the full code:
https://drive.google.com/file/d/0B8yViI6dOLATVVZOVmRyX2tURFk/view
Any help or tips will be appreciated,
Cheers,
AP Ashton