ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator CopperCube action not work
person icon
hanicraft
Registered User
Quote
2023-07-10 12:01:13

Why all of my hand written coppercube action not work

/*
I put my properties here
*/
action_name = function(){};

action_name.prototype.execute = function(currentNode){
print("hello world");
}


person icon
sven
Registered User
Quote
2023-07-10 22:12:01

/*
I put my properties here
*/ Dont know did you put anything there or not-so if not then this is the problem.



/*
<action jsname="action_svcPrint" description="print text">
<property name="stext" type="string" default="this is text.." />
</action>
*/

action_svcPrint = function()
{
}

action_svcPrint.prototype.execute = function(){
print(this.stext);
}


person icon
hanicraft
Registered User
Quote
2023-07-10 22:24:07

I exactly put the same thing

person icon
VP
Guest
Quote
2023-07-11 07:36:46

1- Run the script through a syntax checker.

2- Does the scripting actually work? To test it, try running it as a special>javascript execution action, instead of a plugin extension.

3- What error message are you getting in CopperCube's output window when you try to run your action?

4- Did you name the action_file.js exactly as you've defined it in your script?

5- Did you place your action in a valid directory, to which CopperCube has shared permission to access?

6- Did you restart CopperCube to validate your new plugin?

7- Does your extension pass validation when you open CopperCube?

8- Post a link to your script at "paste-bin" so someone can check/correct it for you (don't post code directly to the forum as plain-text; some special-characters will automatically be deleted which will screw up your code).


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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