Convert a function to string

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2009   #1
Convert a function to string

Is there a built in command to convert a declared proc to string? Or how can I write my own function to do that?

Hmmmm I can think of doing file read operation if the proc is in a separate file.

Any other ideas?

Thanks
__________________
[ myRiggingBLOG ]
[ myAnimBLOG ]
[ myWebsite ]
"Life is animation and we are our own animators." -i
 
Old 04 April 2009   #2
Do you mean like:
 
proc twoPSpheres()
{
polySphere;
polySphere;
}
 
{
string $twoPSpheresCmd = " print \" where dem shpere's at? \\n\"; twoPSpheres; ";
eval $twoPSpheresCmd;
}
__________________
http://www.claydough.net
 
Old 04 April 2009   #3
Originally Posted by theflash: Is there a built in command to convert a declared proc to string? Or how can I write my own function to do that?
What does that mean?!

Actually I'd just say NO!
A proc is like a command. It has functionallity. It can do stuff. You call it, it does things.
A string is just a collection of letters, a variable. It can be used in a procedure or by a command.
They are very different things!

Better try to tell us what you want to do
maybe then we can tell you how to do it
__________________
goodsoul.de
 
Old 04 April 2009   #4
Or do you mean something like 'pickling' in Python?
__________________
www.cam-bamber.co.uk
 
Old 04 April 2009   #5
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed 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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 11:46 AM.


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