BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Scripts
 #takeactor#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

NihilBaxter
Starting Member

15 Posts

Posted - 05 Nov 2016 :  22:32:33  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I'm working on a script and hope someone can help me to get actors saved to the dataset of a movie.
This is how the "ACTOR" part of the script looks like:

#ACTORS#
#STARTREADWEB#
#FINDLINE#=<strong>Actor</strong>:#11#
#RESETCURSOR#
#FIND#=:#12#
#COMPUTEVAR#=#12#+1
#COMPUTECURSOR#=+2
#FIND#=<#13#
#TAKEWORD#=#14#,#12#,#13#
#CHECKVARIABLE#=#14#
#CLEARTAGS#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TRIM#
#TAKEACTOR#=#14#
#ENDACTORS#

In XMM7 this works fine, but not in XMM8 and XMM9.
The strange thing is that the actor is always correctly parsed and saved to #14# using #TAKEWORD#.
But #TAKEACTOR# doesen't seem to work, as nothing is saved to the movie dataset. The actor field stays empty.
If I use for example #TAKEDIRECTOR# instead of #TAKEACTOR# with exactly the same script it works. The actor ist saved as Director to the dataset.
Any suggestions what is wrong?

Thanks in advance,
NB

JDommi
Administrator

Germany
4650 Posts

Posted - 05 Nov 2016 :  23:26:42  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You simply have forgotten to pass ALL parameters to the #TAKEACTOR# command.

//Now Remember to STRING the informations like here!!!     
    #STRING#=#15#=#13#§#14#§#16#

#TAKEACTOR#=#XX# (Name§Character§WebID)

I can only recommend my Script Debugger plugin (Menu Ribbon: MagicScript -> Open Script Debugger). A lot of errors in a script are shown directly and you can see a little help on nearly every command in the status line or by pressing F1 on a keyword.

*EDIT*
In your case you have to pass "Name§§" to the #TAKEACTOR# command.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

NihilBaxter
Starting Member

15 Posts

Posted - 06 Nov 2016 :  13:21:42  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your help.
Now it's working fine.

Edited by - NihilBaxter on 06 Nov 2016 13:22:03
Go to Top of Page

JDommi
Administrator

Germany
4650 Posts

Posted - 06 Nov 2016 :  15:02:56  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You're welcome!

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.12 sec. Powered By: Snitz Forums 2000 Version 3.4.07