Jump to content

Recommended Posts

Thanks you guys are awesome. I can see that even my basic letter example method can be improved and simplified - I need to be learning at least a little bit of VEX asap, it's going to be tough for my Cinema 4D brain ;-)

  • Like 1

Share this post


Link to post
Share on other sites

Thank you very much!!!

I have added one more if()  to the code. Because characters, which are made from more segments (for example i ; : ? ! = ě š í á), were splitting the words:

 

if (i@textindex - 1 != i@opinput1_textindex)
{
    if ( i@textsymbol != i@opinput1_textsymbol)
    {
        @name = "word";   
    }
}

 

Share this post


Link to post
Share on other sites

yeah i and j are most obvious test cases...here's my modded logic

if (abs(i@textindex - i@opinput1_textindex) > 1)
{
    @name = "word";
}

greater than 1 is for white spaces...

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×