« Return to Thread: Layers prototype

Re: User properties and NullOutputScript bugs - was: Layers prototype

by hoako :: Rate this Message:

Reply to Author | View in Thread

Hi again!

Bart Janssens wrote:
> On 5/2/08, Joaquín Duo <hoakoduo@...> wrote:
>> When user properties are created via script, when the file is reloaded, they
>> are
>> reordered missing it's original order. (this doesn't happen on manually
>
> I think there is some reordering going on in
> persistent_container.h/.cpp. Why is the order important?
Well in this particular case every layer has a name. The ideal is having the
name next to the en/disable property. Save a document with the layer manager on
it. When you open it all the layers names went down.

I believe respecting the order is very important for the coherence of GUI in
general.

>
>> NullOutputScript:
>> When opening a file it evaluates its script before its user properties are
>> created.
>> I guess is has to do with /scripting/null_output_script.cpp
>> line 51: connect_script_changed_signal(sigc::mem_fun(*this,
>> &null_output_script::on_execute));
>
> Yes, the script is executed whenever it is changed. It is also
> executed when one of the properties is changed, but not when a
> property is added or removed, though maybe it should.
I guess there is a misunderstanding on the problem. This cause troubles when
opening a file with already created properties from a script on the script node.
Like now (when opening):
1- Creates the script.
2- Evaluates the script.
3- Add the user properties. (without checking that they already are if the
script created them)
You may test this also loading a file with a layer manager. This only happens
with NullOutputScript.

I guess it should evaluate the script after adding the properties.

Cheers!
Joaquín


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

 « Return to Thread: Layers prototype

LightInTheBox - Buy quality products at wholesale price