• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Programming v
« Previous 1 2 3 4 Next »
How to check the text assigned to a Variable

 
  • 1 Vote(s) - 5 Average
How to check the text assigned to a Variable

oort
Offline

3D Obsessed

Posts: 1,184
Threads: 69
Joined: Nov 2012
#6
02-11-2013, 08:00 AM
Micheus,
Thanks... I ended up having to use Split instead of Tokens. I was getting my "1" and "2" but it was not recognized as an integer so "UpperLayer" was not being defined. It took me a while to figure it out but it is working now. Since Blend modes can only have two textures in YafaRay I can probably use the simpler version of your code for now. Unless further testing proves that it is needed...

Thanks again!
oort

Quote:%% Start Identify Modulator # (w_default_Bronze_1 or w_default_Bronze_2)
Split=reConfusedplit(Texname,"_",[{return, list}]),
Num=lists:last(Split),
UpperLayer =
case Num of
"1" -> "<upper_layer sval=\""++UpperLayerName++"\"/>";
_ -> ""
end,

%% End Identify Modulator #

ggaliens,
No idea what a real xml parser does but I am sure it would require skills I do not yet have... Smile Sad
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
How to check the text assigned to a Variable - by oort - 02-08-2013, 08:22 PM
RE: How to check the text assigned to a Variable - by micheus - 02-08-2013, 09:32 PM
RE: How to check the text assigned to a Variable - by oort - 02-08-2013, 10:32 PM
RE: How to check the text assigned to a Variable - by micheus - 02-09-2013, 11:32 AM
RE: How to check the text assigned to a Variable - by ggaliens - 02-10-2013, 03:08 AM
RE: How to check the text assigned to a Variable - by oort - 02-11-2013, 08:00 AM
RE: How to check the text assigned to a Variable - by micheus - 02-11-2013, 03:49 PM
RE: How to check the text assigned to a Variable - by oort - 02-11-2013, 07:49 PM
RE: How to check the text assigned to a Variable - by Whimad - 10-27-2013, 01:45 PM
RE: How to check the text assigned to a Variable - by micheus - 10-27-2013, 02:41 PM
RE: How to check the text assigned to a Variable - by superhitdeals - 04-04-2014, 12:52 PM
RE: How to check the text assigned to a Variable - by martinkay - 06-30-2014, 01:44 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode