PDA

View Full Version : ChunksArray birth script


darkmoon3d
01-04-2007, 09:52 AM
I'm trying the 'birth script' for scripting custom chunks. Used for creating Pflow fragments of objects. Example code is attached. Been referencing these links for help
--http://www.scriptspot.com/bobo/mxs5/pflow/pflow__Chunks_Basics.htm

--http://www.3dbuzz.com/vbforum/printthread.php?t=109715

--http://www.scriptspot.com/scripts/web_upload/Allan%20McKay/QuickFrag_v082.ms

--http://www.orbaz.com/forum/viewtopic.php?t=326


Trying to modify this line in code to instead of finding objects named "object" in scene would take an array from multilistbox.

global ChunksArray = PFlow_ChunksArray --$Object* as array

Everytime I try this it doesn't work. Is this even possible to use listbox for ChunksArray or does it have to be listed as '$Object*'?

rdg
01-04-2007, 09:59 AM
I guess you have to reference your listbox in a other way.
As long as PFlow_ChunksArray isn't a global variable the birthscript cannot access it.

something like:
<rollout_name>.<listbox_name>.items
But the rollout needs to be decared global, too.

Don't have the time to look deeper in the examples. Sorry.

Georg

CGTalk Moderation
01-04-2007, 09:59 AM
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.