INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Need help with View question  (Read 2114 times)

kensn

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Need help with View question
« on: August 19, 2011, 05:06:11 pm »

I am working on a plugin and in Theater View, if the plugin switches the current view to Display view, then goes back all is good. If I try to go back 2 levels it wont. This does work in  Theater View going to Playing Now, and Standard view going to either Display View or Theater View Playing Now though. Any Ideas...

I Have tried

22005,1 = only goes back 1 level

22005,0 (back) and 22005,0 (back) = only goes back 1 level

22005,0 (back) and 27000,8 (Backspace) = only goes back 1 level

Hope someone can shed some light on this

Ken

 
Logged
If(IsEmpty([Coffee Cup]), Coffee, Drink)

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Need help with View question
« Reply #1 on: August 19, 2011, 05:42:29 pm »

I'm not understanding in which modes you're seeing failures.

0 and 1 are identical in the 22005/6 commands (since 0 makes no sense, it means the same thing as 1).

Going back (22005) or forward (22006) beyond was is available in the stack results in no motion, so you must not overflow.

I can go forward and backwards in the tree to any valid levels.

Can you clarify?
Logged
The opinions I express represent my own folly.

kensn

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Re: Need help with View question
« Reply #2 on: August 19, 2011, 06:26:16 pm »

 22005 command is int nLevels (0 does 1 level) So I reasoned 0 went back 1 level, 1 went back 2 levels....

This is how I saw it working.

My main problem is if I am in Theater View, then go to display View, then send command to go back 1 level it works, going back 2 does not. It always sends me back 1 level.

In other views I have tested I can go back 2 levels with the same code.

Ken
Logged
If(IsEmpty([Coffee Cup]), Coffee, Drink)

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Need help with View question
« Reply #3 on: August 19, 2011, 06:45:42 pm »

I don't know this well enough, but display view may present an issue here since you can detach the display and these commands affect the forward/backwards navigation in the tree.

In the tree, I see levels change forward/backward as I mentioned early (0 and 1 are both 1), 2 is 2 levels, etc.
Logged
The opinions I express represent my own folly.

kensn

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Re: Need help with View question
« Reply #4 on: August 19, 2011, 06:50:11 pm »

Well thanks for checking..  All code works well except for this one instance. Not a show killer though.

I will double check the 0 and 1 in 20005 also, it seems to be doing 1 and 2 levels respectivly for me in my views... curious...

ken
Logged
If(IsEmpty([Coffee Cup]), Coffee, Drink)

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Need help with View question
« Reply #5 on: August 19, 2011, 06:58:16 pm »

It does seem that the quantity parameter is ignored/meaningless in display view.   Where should it go?
Logged
The opinions I express represent my own folly.

kensn

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Re: Need help with View question
« Reply #6 on: August 19, 2011, 07:13:04 pm »

It seems now that it is ignored... explains a lot for me...

But even if I use the back command twice, it only goes back once in the above senario...

Ken
Logged
If(IsEmpty([Coffee Cup]), Coffee, Drink)

kensn

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Re: Need help with View question
« Reply #7 on: August 19, 2011, 09:58:42 pm »

I got it... prolem was due to execution steps.... My bad..

Ken
Logged
If(IsEmpty([Coffee Cup]), Coffee, Drink)
Pages: [1]   Go Up