Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 |
mul(plugin[bigPrev].width, stagewidth, 0.5) set(plugin[bigPrev].height, prop) |
But: - hoping for it - may be in the final 1.0.8. it will be possible to assign a border to picture-plugins too (i was used to by fpp in the past);
nevertheless: Transferring the "height" from one plugin to an other SHOULD transfer the real actual pixelvalue AND NOT the method "prop" used to set for the source plugin! This only doesent work with "prop". If you e.g. have set the source width to "mul(dest.width,stagewidth,0.5)" it correctly does transfer the pixel value and not the method itself.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »lts« (8. August 2010, 12:31)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<!-- custom action to convert "plugin[name].height = PROP" to pixels....
---- usage: height_PROP_to_pixels(name);
---- the name of the plugin must be passed as argument.
---- the resulting value in pixels is set inside a custom variable:
---- plugin[name].pixelheight -->
<action name="height_PROP_to_pixels">
addplugin(temp);
set(plugin[temp].visible,false);
set(plugin[temp].url,get(plugin[%1].url));
wait(0);
div(divisor,plugin[temp].width,plugin[%1].width);
div(plugin[%1].pixelheight,plugin[temp].height,divisor);
showlog();
trace('The current value for plugin[%1].height is = ',plugin[%1].height);
trace('The value in pixel for plugin[%1].height is = ',plugin[%1].pixelheight);
removeplugin(temp);
</action>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »lts« (9. August 2010, 14:47)
|
|
Quellcode |
1 2 3 4 5 6 7 |
push(plugin[name].width); push(plugin[name].height); plugin[name].resetsize(); copy(plugin[name].originalwidth, plugin[name].width); copy(plugin[name].originalheight, plugin[name].height); pop(plugin[name].height); pop(plugin[name].width); |