ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > CopperCube Open discussion
forum topic indicator copy/paste behaviors/Action
person icon
coa
Registered User
Quote
2022-04-19 14:33:33

sometimes i wish i could do that is that possible to make?

person icon
sven
Registered User
Quote
2022-04-19 15:10:50

right klick ->modify selection->copy behaviors of this node
if copied then you can paste it to next node.

person icon
Arcanjo
Guest
Quote
2022-04-19 15:15:49

emoji icon_grin

person icon
Aiming_bullets
Guest
Quote
2022-04-19 16:19:00

Shortcut "CTRL+B" to cooy behaviors of a scenenode except root node... And "CTRL+J" to paste the behavior to another node.

No copy paste mechanism for actions.

person icon
coa
Guest
Quote
2022-04-19 16:24:39

Yes i know i can copy behaviour of node but what about single actions and behaviours

person icon
coa
Registered User
Quote
2022-04-19 17:32:48

this would though be used very little

person icon
coa
Registered User
Quote
2022-04-19 17:48:56

like if i need 2 actions that check variable i can just make 1 and dublicate 1

person icon
Arcanjo
Guest
Quote
2022-04-19 18:58:53

There is not this option 'Copy Actions' inside of behaviors and actions.

person icon
hadoken
Guest
Quote
2022-04-19 21:14:25

How about using a scene node as clipboard? Copy actions/behaviors from original nodes to clipboard node, delete actions/behaviors from clipboard node you don't want to pass further to other nodes. Then copy/paste from clipboard node to third node. You can also use multiple clipboard nodes, even folder nodes for the purpose. Made good experiences with this kind of workaround ...

person icon
gree
Guest
Quote
2022-12-16 00:16:35

@hadoken would you mind explaining this a bit more...please?
I'd need to get a complex "shoot" with lots of additional sub-nodes into a "if/else" node. Is there any way? (one sublayer further down the rabbit hole)...

How do you copy it to "clipboard" -> I guess you are speaking of the internal CTRL+C memory? :)
...or is this some CCB thin I'm totally NOT aware of. thanks, either way.

hadoken wrote:
How about using a scene node as clipboard? Copy actions/behaviors from original nodes to clipboard node, delete actions/behaviors from clipboard node you don't want to pass further to other nodes. Then copy/paste from clipboard node to third node. You can also use multiple clipboard nodes, even folder nodes for the purpose. Made good experiences with this kind of workaround ...


person icon
hadoken
Guest
Quote
2022-12-17 14:07:41

@gree

Sorry for the late reply, must have missed your question first. I was just talking about copying multiple actions/behaviors from one example or prototype node via Ctrl+B and pasting via Ctrl+J shortcut to a special scene node (simply use a folder node) which I exclusively use as kind of a "clipboard" to store and manage a bunch of actions/behaviors (e.g. with additional removing & editing of certain scripts) as templates for assigning to other game relevant nodes later on. That's all, but the concept makes my workflow a lot easier than repeating each single script arrangement several times from scratch in most situations.

person icon
gree
Registered User
Quote
2022-12-17 14:57:45

@hadoken, thanks. I do work similar; but how do you copy/paste settings from the main-scene-node. It seems locked in place; any workaround to get these out of the top-level?

person icon
hadoken
Guest
Quote
2022-12-17 15:34:15

@gree

For that reason I strictly avoid assigning any actions/behaviors to the main-scene node (aka scene root node). This also gives some advantages when reusing one scene as copy for another one. Only problem: "Before drawing do something" must be solved by a custom script then, because only the scene's root node seems to have access to the in-built editor function.

But I think you could use this simple custom behavior for the task:
/*
<behavior jsname="behavior_HadokenBeforeFirstDrawing" description="behavior_HadokenBeforeFirstDrawing">
<property name="DoAction" type="action" />
</behavior>
*/

behavior_HadokenBeforeFirstDrawing = function()
{
this.init = 0;
}

behavior_HadokenBeforeFirstDrawing.prototype.onAnimate = function(currentNode)
{
if(this.init == 0)
{
ccbInvokeAction(this.DoAction, currentNode);
this.init = 1;
}
}



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 |