PDA

View Full Version : Spline plugin programming


Manwich
06-07-2003, 10:26 PM
Hey all,

I've been trying to implement a plugin idea i had because i needed to create spline from point objects i have.

but i've been looking through the SDK and cant find a way to alter the splines points!

Ultimately i want to give it a object of points then the plugin to find the position of each point and then create a spline point at the same position.

I can create a spline object or spline primitive and make it editable but then i cant move the spline points.

Also when i want to use the function "FindObject" i get an error telling me that the values are incompatable "nil/Object"?

for example i could use the following
var obj = doc->FindObject("MyObject");
but cinema 4D would generate the above error!

Can anybody help?

Thanks

Manwich

P.S I'm using Cinema 4D XL6.3

H. Ikeda
06-08-2003, 02:45 AM
Hi,

I'm not sure about your point, but I'd say before creating spline points you have to create a spline object. Also before creating spline points, the setting of VariableChanged class is needed for the spline object. An example is found in

NURBSPrm.zip (http://www.interq.or.jp/aquarius/ikeda3dr/movie/data/NURBSPrm.zip)

(very very simple plugins, and you could see that in NP Cone or NP Pyramid .cof files)

hope this helps anyway.:)

LucentDreams
06-08-2003, 05:56 AM
my suggestion would be to simlpy upgrade C4D since this tool already exists in future versions I also believe the is a poly line to spline plugin available for version 6, check in the plugin thread in the resource subforum

CGTalk Moderation
01-15-2006, 08:00 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.