• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MAXScript]Object Source
#1
Hi,
I try to add objects to an Object Source using MAXScript, but it returns an error
Code:
src = $'FFX Object Src001'
src.object = (selection as array)

-- Runtime error: Array parameter size fixed, cannot dynamically alter: Object

Am I missgin something?

Thanks
  Reply
#2
This is a generalized variant of what I use:


Code:
theObjectSourceObj = $FFX_Object_Src001
theObjects = selection as array
for i in 1 to theObjects.count do theObjectSourceObj.AddObject theObjects[i]

You need to use the supplied 'AddObject node' function, this can be iterative as I have shown above. There are a few other object functions as well, check out the maxscript section in the Fume help. One of Fumes greatest strengths is its useful script access. Smile
blower of smoke ..ooOO
  Reply
#3
pfff.
Of course.
I m such a ..... lol

Thanks John.

Ruben
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)