|
|
Quellcode |
1 2 |
txtadd(pluginname, thumb_, %1); removeplugin(pluginname); |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<action name="removing_plugins"> sub(i,plugin.count,1); if(i GE 0,removing_loop_all_plugins(get(i),%1,%2)); </action> <action name="removing_loop_all_plugins"> if(%2 == null, removeplugin(%1); , if(plugin[%1].%2 == %3, removeplugin(%1); ); ); dec(i); if(i GE 0, removing_loop_all_plugins(get(i),%2,%3) ); </action> |
Hi all, and Klaus
I try to remove plugin by lot, but it's doesn't work
eg I want to remove all the plugin photo_0, 1,2,3,4 etc..
but removeplugin(thumb_1%) not working only removeplugin(1%) works but all the plugin gone
job1 add this to each plugin you want to disappear.
tag="thumb"
then run this action and it will work. removing_plugins(tag,thumb);
it will loop through every single plugin on the stage and only remvoe the ones with tag="thumb" i tag almost all my plugins now use this code it kind allows you to trun groups of things on and off at the same time.
![]()
Quellcode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <action name="removing_plugins"> sub(i,plugin.count,1); if(i GE 0,removing_loop_all_plugins(get(i),%1,%2)); </action> <action name="removing_loop_all_plugins"> if(%2 == null, removeplugin(%1); , if(plugin[%1].%2 == %3, removeplugin(%1); ); ); dec(i); if(i GE 0, removing_loop_all_plugins(get(i),%2,%3) ); </action>
|
|
Quellcode |
1 2 3 4 5 |
for(set(i, plugin.count), i GE 0, sub(i),
if(plugin[get(i)].%2 == %3,
removeplugin(get(i));
);
);
|
@ VN2011 YESSSSSS ! ! it works like I want
@ jpdeglet69 sorry but not works
many thanks all![]()
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jpdeglet69« (7. Juli 2011, 08:21)
does that work?
m%1t%2?
wouldnt you need to do txtadd(tmpvar, m, %1, t, %2) ?
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jpdeglet69« (8. Juli 2011, 09:38)