Mel Scripting Issue

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  05 May 2018
Mel Scripting Issue

I want to print int $i=1,2,3,4,_____to 01,02,03,01___
How can i do this with mel.
  3 Weeks Ago
What you want is the MODULO or sometimes called FRAC operator, more simply known as the percent symbol %
This takes one number, divides it by another number and spits out the remander.

 $output = ($i % 4);
 print ("0"+$output+",");
>>>00,01,02,03,00,01,02,03,00,01,02,03,00,01,02,03,00  ,01,02,03

MAy all your dreams come true
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:22 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.