Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
what is the Coppercube Javascript equivalent of the Action "Load or Store a Variable from or to disk" ?

bracer
Registered User
Quote
2017-07-21 20:56:59

what is the Coppercube Javascript equivalent of the Action "Load or Store a Variable from or to disk" ?


3dblendsphinx
Registered User
Quote
2017-07-21 22:11:46

I think the closest you will get is the

ccbReadFileContent-load Information
ccbWriteFileContent-Save Information


bracer
Registered User
Quote
2017-07-22 02:38:45

Hello 3dblendsphinx, unfortunately we both know this is not it, but yes this is the closest but it doesn't work on all platforms I think.


3dblendsphinx
Registered User
Quote
2017-07-22 16:05:51

Yep, its just the most we are given.


just_in_case
Moderator
Quote
2017-07-23 11:34:46

Actually the built in action saves the Variable to the registry for the specific app... and loads the variable from there only....

But the CCB javascript command...to writeeilecontent and readfilecontent will simply write the variable to a .txt file and reads it from there.....

so if you don't want your variables to be stored in registry you can save them in .txt file... using the javascript api..


3dblendsphinx
Registered User
Quote
2017-07-23 15:05:24

But the write function don't work for things browser based cause browsers are blocked from writing to the system. So if their is project is webgl it wouldn't work. They wanted something that would work universally.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact