Jump to content


Photo
- - - - -

syntax error

tutorial

  • Please log in to reply
10 replies to this topic

#1 Madfox

Madfox

    Apprentice

  • *A:M User*
  • PipPip
  • 87 posts
  • Netherlands
  • Windows

Posted 28 November 2014 - 12:12 AM

I was working on one of the tutorials of adding If() functions in the bone sector. 

Following closely to the tutorial I came to another syntax as was shown. 

The tut was called "SetFrameAtTimeGetTime".

 

There is a point where one types :

If(GetTime()>SetFrame(10),

Turning to the action pose with the relationship and pointing to the other Translate X should give : 

..|..|..|..|Bone1,Transform.Translate.X

So the full equation goes :

If(GetTime().SetFrame(10),..|..|..|..|Bone1.Transform.Translate.X,0)

 

At that time I'm already lost, while my results when pointing to the bone 1 transformX are :

IfGetTime()>SetFrame(10),..|..|..|..|..|..|..|Actions|Relationship: Shortcut to 2boneball - Pose1 - Shortcut to Relationship1: |Shortcut to 2boneball|Bones|Bone1.Transform.Translate.X,0)

followed by "Wrong Syntax."

 

Why is there another syntax? 

 

I'm Using Animation v17..

The tutorial is here:

http://amfilms.hash....-AtTime-GetTime

 

 

Attached Thumbnails

  • Image3.jpg


#2 robcat2075

robcat2075

    occasional smarty-pants

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 23736 posts
  • Robert Holmén
  • *Moderator*
  • Dallas, Texas
  • other
  • Windows
  • Programmer:NO

Posted 28 November 2014 - 07:01 AM

Yeah, that expression stuff is very picky.

 

I haven't looked into it much but I'll note that in your post you have a period after GetTime() in one instance but not in another.  I presume that is significant.


Robert Holmén
------

Got an A:M question? Come to Live Answer Time.   Saturdays, Noon CDT (1700 GMT)

Watch the 2017 "Summer Memories" Image Contest Awards

 

My tutorials All my most beloved tutorials in one convenient location. Except for the ones I've forgotten about.
 
this is only a ... my gallery of A:M tests

87,848 pushed!: the #1 heavy push on Youtube

Big thanks to... Roger (again!), Shelton (it's huge!), NancyGormezano, Roger, cribbidaj, thefreshestever, Tom, Dalemation, Simon Edmondson, thejobe, Rob_T (2 more x), agep (again!), itsjustme, jason1025(+1), dblhelix (+1),markw, Roger (3x!), mouseman (x 2!), Xtaz, agep, Gerry, thefreshestever, dblhelix (twice!), jason1025, Luuk Steitner, PDM, Rob_T and Dhar!


#3 itsjustme

itsjustme

    David Simmons......me.

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5461 posts
  • David Simmons
  • current
  • Windows

Posted 28 November 2014 - 11:49 AM

It looks like you have shortcuts to bones instead of the actual bones.  Where are you selecting them from?

 

Also, this was first implemented in v17e...are you using that version or later?



#4 Madfox

Madfox

    Apprentice

  • *A:M User*
  • PipPip
  • 87 posts
  • Netherlands
  • Windows

Posted 28 November 2014 - 03:13 PM

I tried to follow the manual and with the same statement I get this odd outcome. 

I thought it had to do with the directory on another part of my disk.

So I transported it back to the main root but I can't grip on the ,..|..|  extra?

 

I made the same two spheres, add bones to them, made a pose on the model and turned it on.

Then go to the first bone and in Transform Translate X - Edit expression.

The tutorial says: In this If() statement to fill in : (GetTime()>SetFrame(10),

and in the action folder point to the scond bone Transform Translate X and then the odd equation appears.

Sidefolder etc. and Wrong syntax

 

The only way to get the same syntax  If(GetTime()>SetFrame(10),,..|..|..|..|Bone2.Transform.Translate.X,0)

is to point at the bone2 in the model folder, not the action folder.

That's not like the manual and anyway it leads to the same syntax error.

 

I don't have AM17e, I'm the lucky one who bought AM17, and received AM16c.

So I update to AM17.



#5 itsjustme

itsjustme

    David Simmons......me.

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5461 posts
  • David Simmons
  • current
  • Windows

Posted 28 November 2014 - 05:02 PM


 

I don't have AM17e, I'm the lucky one who bought AM17, and received AM16c.

So I update to AM17.

 

This Expression won't work in anything earlier than v17e.  If you have v17 already, you can download v17g+ from the FTP and install it.  Here is a link: ftp://ftp.hash.com/pub/updates/windows/v17/



#6 Madfox

Madfox

    Apprentice

  • *A:M User*
  • PipPip
  • 87 posts
  • Netherlands
  • Windows

Posted 29 November 2014 - 03:12 PM

 

 and received AM16c

I can update to 17, not further.

 

If the expression won't work in 16-0b, for what is the subdirectory choice?

I can ask for Edit expression and get the screen with all kind of settings.

The tutorials have the go-round to use the If() expression. 

That's the reason I'm asking.



#7 robcat2075

robcat2075

    occasional smarty-pants

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 23736 posts
  • Robert Holmén
  • *Moderator*
  • Dallas, Texas
  • other
  • Windows
  • Programmer:NO

Posted 29 November 2014 - 04:58 PM

Are you not on an annual subscription?


Robert Holmén
------

Got an A:M question? Come to Live Answer Time.   Saturdays, Noon CDT (1700 GMT)

Watch the 2017 "Summer Memories" Image Contest Awards

 

My tutorials All my most beloved tutorials in one convenient location. Except for the ones I've forgotten about.
 
this is only a ... my gallery of A:M tests

87,848 pushed!: the #1 heavy push on Youtube

Big thanks to... Roger (again!), Shelton (it's huge!), NancyGormezano, Roger, cribbidaj, thefreshestever, Tom, Dalemation, Simon Edmondson, thejobe, Rob_T (2 more x), agep (again!), itsjustme, jason1025(+1), dblhelix (+1),markw, Roger (3x!), mouseman (x 2!), Xtaz, agep, Gerry, thefreshestever, dblhelix (twice!), jason1025, Luuk Steitner, PDM, Rob_T and Dhar!


#8 itsjustme

itsjustme

    David Simmons......me.

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5461 posts
  • David Simmons
  • current
  • Windows

Posted 29 November 2014 - 06:16 PM

If you need an If() tutorial, there is one here:  http://amfilms.hash....ession-function

 

The "SetFrame(frame)", "AtTime(time,n)" and "GetTime()" functions require v17e or later.



#9 Madfox

Madfox

    Apprentice

  • *A:M User*
  • PipPip
  • 87 posts
  • Netherlands
  • Windows

Posted 30 November 2014 - 03:04 PM

No, I have no annual subscription.

I bought Am-v11.1 and Am-v16b with an update to v.17.

 

Thanks for the manual.

Still I can't see why Am-v17 with the Edit expression possibilities require v17e to work? 

Feels a bit stupid to add a Edit screen that won't work?



#10 itsjustme

itsjustme

    David Simmons......me.

  • Hash Fellow
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5461 posts
  • David Simmons
  • current
  • Windows

Posted 30 November 2014 - 03:44 PM


Still I can't see why Am-v17 with the Edit expression possibilities require v17e to work? 

Feels a bit stupid to add a Edit screen that won't work?

 

The "SetFrame(frame)", "AtTime(time,n)" and "GetTime()" functions didn't exist until v17e.  "If()" existed before that and should work for other functions in older versions.



#11 Madfox

Madfox

    Apprentice

  • *A:M User*
  • PipPip
  • 87 posts
  • Netherlands
  • Windows

Posted 02 December 2014 - 07:40 PM

So it is the statement that wasn't available.

Alright.

 

:mellow:







Also tagged with one or more of these keywords: tutorial

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users