You are not logged in.

1

Saturday, November 10th 2012, 1:22pm

" no parent "skin_thumb_null" found" Error

" no parent "skin_thumb_null" found" Error
this error occurred and I don't know its reason and nothing found in my XML file that was related to the such a thing ...

who knows something about it and how can I fix it ...

Best regard ...
Ruhollah

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Wednesday, November 14th 2012, 1:13pm

you could give the link to xml or post it here.
I could be wrong definition of parent attribute.

3

Wednesday, November 14th 2012, 6:12pm

Hi,

that error comes probably from the 'skin_update_scene_infos' action in the vtourskin.xml.
In that action there is this code line:

Source code

1
txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(scene[get(xml.scene)].index));


So when you get this error, then either the 'xml.scene' setting is not set (=no current scene loaded),
or that given scene doesn't exists...

Both situations shouldn't be possible in a default generated tour...
Have you changed anything or are you trying to mix/link several tours in some way?

Best regards,
Klaus

exopano

Beginner

Posts: 5

Location: Los Angeles, CA USA

Occupation: Photographer

  • Send private message

4

Monday, July 8th 2013, 8:13pm

no parent found skin_thumb_null SOLVED - Need solution on actions after startup()

Dear forum,

This is not my main problem, please see below for bigger problem, but here's a solution to no parent found:

I had the same problem, and I'm doing a tour that is split into three parts and has a map for navigation between the three tours. Thanks for directing me to the place to find the origin of this problem. I have been able to rewrite the skin_update_scene_infos action to reflect the instance of having a null scene. I have null scenes because I'm letting a Map function come up first before the startup(), and having startup() called upon leaving the Map, so no scene is loaded.

However, I would really like to be able to have a map action be called after startup() or after loadpano() or loadscene() is called. How can one have subsequent actions to the startup() of a vtour function?

Also, after leaving the Map to a destination scene, the startup() is called or loadscene() is called, and then my Map and it's hide/show button will not function again afterwards.

I need a Map to show and it's functions to work, and it's button to show it and hide it to work after the startup() action loads the first scene. Is there a secret to ordering actions in the xml for the xml to render correctly and allow immediate actions after startup()??

Thanks so much.

Here is my solution to the first no parent found problem:


<action name="skin_update_scene_infos">
if(xml.scene != null,
if(title,

if((get(scene[get(xml.scene)].title) === 'null' , set(layer[skin_title].visible,false);
,
txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) ); , copy(layer[skin_title].html, scene[get(xml.scene)].title ); );
delayedcall(0.1, set(layer[skin_title].visible,true)));

if(scene[get(xml.scene)].index GT 0,
set(layer[skin_btn_prev].enabled, true);
set(layer[skin_btn_prev].alpha, 1.0);
,
set(layer[skin_btn_prev].enabled, false);
set(layer[skin_btn_prev].alpha, 0.3);
);

sub(lastsceneindex, scene.count, 1);
if(scene[get(xml.scene)].index LT lastsceneindex,
set(layer[skin_btn_next].enabled, true);
set(layer[skin_btn_next].alpha, 1.0);
,
set(layer[skin_btn_next].enabled, false);
set(layer[skin_btn_next].alpha, 0.3);
);


set(layer[skin_thumbborder].visible, false);

if(scene[get(xml.scene)].mapspotname,
layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname));
layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname));
);
,
set(layer[skin_title].visible,false;
);
</action>

thanks,
John

exopano

Beginner

Posts: 5

Location: Los Angeles, CA USA

Occupation: Photographer

  • Send private message

5

Tuesday, July 9th 2013, 2:04am

skin_update_scene_infos Not working with Null scene Title

I apologize. I realize this code turned off the visibility of the left/right arrows.
But it seemed to remove the log error of no parent found. Now no matter what I do to this action, the error is not coming up again, but either titles including " - Null" for the emtpy scene or no titles at all for all scenes occurs.

Readers please realize also I had removed the nearly last line:

"txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(scene[get(xml.scene)].index)); "

and had set "set(layer[skin_title].visible,true;" to false instead because we didn't want the thumborder in this tour.


But now, Dear Forum,

Why wouldn't this work to take the word "Null" out of my title and yet still show titles for all scenes? ::

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<action name="skin_update_scene_infos">
if(xml.scene != null,
if(title,
if(get(scene[get(xml.scene)].title) != null, txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) );				,
if(get(scene[get(xml.scene)].title) === null, txtadd(layer[skin_title].html, get(title) ); );	
,
copy(layer[skin_title].html, scene[get(xml.scene)].title ); );
delayedcall(0.1, set(layer[skin_title].visible,true) );
if(scene[get(xml.scene)].index GT 0,
set(layer[skin_btn_prev].enabled, true);
set(layer[skin_btn_prev].alpha, 1.0);
 ,
set(layer[skin_btn_prev].enabled, false);
set(layer[skin_btn_prev].alpha, 0.3);
);
sub(lastsceneindex, scene.count, 1);
if(scene[get(xml.scene)].index LT lastsceneindex,
set(layer[skin_btn_next].enabled, true);
set(layer[skin_btn_next].alpha, 1.0);
set(layer[skin_btn_next].enabled, false);
set(layer[skin_btn_next].alpha, 0.3);
);
set(layer[skin_thumbborder].visible, false);	
if(scene[get(xml.scene)].mapspotname,
layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname));				layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname));
);
);
</action>



After " if(title, " I had tried to set the title text to just the title without scene title added. Why is this now removing all titles and still not updating the alpha of the prev/next scene arrows?

thanks very much,
John

6

Tuesday, July 9th 2013, 11:49am

Hi,

regarding the 'no parent found' error - the vtourskin.xml in the new 1.16.5 version was updated to avoid this case:
http://krpano.com/news/#releasenotes1165

The check if the scene is already loaded wasn't correct in the previous vtourskin.xml versions.


regarding using empty scene titles - change this line in the vtourskin.xml:

Source code

1
if(title, txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) ); , copy(layer[skin_title].html, scene[get(xml.scene)].title ); );


to this one:

Source code

1
2
3
4
5
6
7
8
9
if(title, 
    if(scene[get(xml.scene)].title,
        txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) );
      ,
        copy(layer[skin_title].html, title ); 
    );
  ,
    copy(layer[skin_title].html, scene[get(xml.scene)].title ); 
);


That code check if the scene title is set too - if set both tiles were used, if only the global tile is set only this one is used, and if only the scene title is set, then only this one used.

Best regards,
Klaus